View a markdown version of this page

Ejemplos de políticas de IAM para AWS Artifact en el ámbito comercial AWS Regions - AWS Artifact

Las traducciones son generadas a través de traducción automática. En caso de conflicto entre la traducción y la version original de inglés, prevalecerá la version en inglés.

Ejemplos de políticas de IAM para AWS Artifact en el ámbito comercial AWS Regions

Puede crear políticas de permisos que concedan permisos a usuarios de IAM. Puede conceder a los usuarios acceso a los AWS Artifact informes y la posibilidad de aceptar y descargar acuerdos en nombre de una sola cuenta o de una organización.

En los siguientes ejemplos de políticas se muestran los permisos que puede asignar a los usuarios de IAM en función del nivel de acceso que necesiten.

Estas políticas se aplican en AWS las regiones comerciales. Para ver las políticas aplicables a AWS GovCloud (US) Regions, consulte los ejemplos de políticas de IAM para AWS ArtifactAWS GovCloud (US) Regions

ejemplo Ejemplos de políticas para gestionar AWS informes a través de permisos detallados
sugerencia

Debería considerar la posibilidad de utilizar la política AWSArtifactReportsReadOnlyAccess gestionada en lugar de definir la suya propia.

La siguiente política concede permiso para descargar todos los AWS informes mediante permisos específicos.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:ListReports", "artifact:GetReportMetadata", "artifact:GetReport", "artifact:GetTermForReport", "artifact:ListReportVersions" ], "Resource": "*" } ] }

La siguiente política concede permiso para descargar únicamente los informes AWS SOC, PCI e ISO mediante permisos detallados.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:ListReports" ], "Resource": "*" }, { "Effect": "Allow", "Action": [ "artifact:GetReportMetadata", "artifact:GetReport", "artifact:GetTermForReport", "artifact:ListReportVersions" ], "Resource": "*", "Condition": { "StringEquals": { "artifact:ReportSeries": [ "SOC", "PCI", "ISO" ], "artifact:ReportCategory": [ "Certifications and Attestations" ] } } } ] }
ejemplo Ejemplos de políticas para gestionar informes de terceros
sugerencia

Debería considerar la posibilidad de utilizar la política AWSArtifactReportsReadOnlyAccess gestionada en lugar de definir la suya propia.

Third-party los informes se indican mediante el recurso de IAM. report

La siguiente política concede permisos a todas las funcionalidades de informes de terceros.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:ListReports", "artifact:GetReportMetadata", "artifact:GetReport", "artifact:GetTermForReport" ], "Resource": "*" } ] }

La siguiente política concede permiso para descargar informes de terceros.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:GetReport", "artifact:GetTermForReport" ], "Resource": "*" } ] }

La siguiente política concede permiso para enumerar informes de terceros.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:ListReports" ], "Resource": "*" } ] }

La siguiente política otorga permiso para ver los detalles de un informe de terceros en todas las versiones.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:GetReportMetadata" ], "Resource": [ "arn:aws:artifact:us-east-1::report/report-jRVRFP8HxUN5zpPh:*" ] } ] }

La siguiente política otorga permiso para ver los detalles de un informe de terceros para una versión específica.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:GetReportMetadata" ], "Resource": [ "arn:aws:artifact:us-east-1::report/report-jRVRFP8HxUN5zpPh:1" ] } ] }
sugerencia

Deberías considerar la posibilidad de utilizar la AWSArtifactAgreementsReadOnlyAccess política AWSArtifactAgreementsFullAccess gestionada en lugar de definir tu propia política.

ejemplo Ejemplo de políticas para gestionar acuerdos

La siguiente política concede permiso para descargar todos los acuerdos.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:ListAgreements", "artifact:ListCustomerAgreements" ], "Resource": [ "*" ] }, { "Sid": "AWSAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetAgreement", "artifact:AcceptNdaForAgreement", "artifact:GetNdaForAgreement" ], "Resource": "arn:aws:artifact:::agreement/*" }, { "Sid": "CustomerAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetCustomerAgreement" ], "Resource": "arn:aws:artifact::*:customer-agreement/*" } ] }

La siguiente política otorga permiso para aceptar todos los acuerdos.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:ListAgreements" ], "Resource": [ "*" ] }, { "Sid": "AWSAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetAgreement", "artifact:AcceptNdaForAgreement", "artifact:GetNdaForAgreement", "artifact:AcceptAgreement" ], "Resource": "arn:aws:artifact:::agreement/*" } ] }

La siguiente política otorga permiso para rescindir todos los acuerdos.

{ "Version":"2012-10-17", "Statement": [ { "Sid": "ListAgreementActions", "Effect": "Allow", "Action": [ "artifact:ListAgreements", "artifact:ListCustomerAgreements" ], "Resource": "*" }, { "Sid": "CustomerAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetCustomerAgreement", "artifact:TerminateAgreement" ], "Resource": "arn:aws:artifact::*:customer-agreement/*" } ] }

La siguiente política otorga permisos para ver y ejecutar los acuerdos a nivel de cuenta.

{ "Version":"2012-10-17", "Statement": [ { "Sid": "ListAgreementActions", "Effect": "Allow", "Action": [ "artifact:ListAgreements", "artifact:ListCustomerAgreements" ], "Resource": "*" }, { "Sid": "AWSAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetAgreement", "artifact:AcceptNdaForAgreement", "artifact:GetNdaForAgreement", "artifact:AcceptAgreement" ], "Resource": "arn:aws:artifact:::agreement/*" }, { "Sid": "CustomerAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetCustomerAgreement", "artifact:TerminateAgreement" ], "Resource": "arn:aws:artifact::*:customer-agreement/*" } ] }
ejemplo Ejemplos de políticas con las que se puede integrar AWS Organizations

La siguiente política otorga permiso para crear el rol de IAM con AWS Organizations el que AWS Artifact se realiza la integración. La cuenta de administración de la organización debe tener estos permisos para empezar a usar acuerdos de la organización.

{ "Version":"2012-10-17", "Statement": [ { "Sid": "CreateServiceLinkedRoleForOrganizationsIntegration", "Effect": "Allow", "Action": [ "iam:CreateServiceLinkedRole", "iam:GetRole" ], "Resource": "arn:aws:iam::*:role/aws-service-role/artifact.amazonaws.com/AWSServiceRoleForArtifact", "Condition": { "StringEquals": { "iam:AWSServiceName": [ "artifact.amazonaws.com" ] } } } ] }

La siguiente política concede permiso para conceder AWS Artifact los permisos de uso AWS Organizations. La cuenta de administración de la organización debe tener estos permisos para empezar a usar acuerdos de la organización.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "organizations:DescribeOrganization", "organizations:ListAWSServiceAccessForOrganization" ], "Resource": "*" }, { "Sid": "EnableServiceTrustForArtifact", "Effect": "Allow", "Action": [ "organizations:EnableAWSServiceAccess" ], "Resource": "*", "Condition": { "StringEquals": { "organizations:ServicePrincipal": [ "aws-artifact-account-sync.amazonaws.com" ] } } } ] }
ejemplo Ejemplos de políticas para administrar acuerdos de la cuenta de administración

La siguiente política concede permisos para administrar los acuerdos de la cuenta de administración.

{ "Version":"2012-10-17", "Statement": [ { "Sid": "ListAgreementActions", "Effect": "Allow", "Action": [ "artifact:ListAgreements", "artifact:ListCustomerAgreements" ], "Resource": "*" }, { "Sid": "AWSAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetAgreement", "artifact:AcceptNdaForAgreement", "artifact:GetNdaForAgreement", "artifact:AcceptAgreement" ], "Resource": "arn:aws:artifact:::agreement/*" }, { "Sid": "CustomerAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetCustomerAgreement", "artifact:TerminateAgreement" ], "Resource": "arn:aws:artifact::*:customer-agreement/*" }, { "Sid": "CreateServiceLinkedRoleForOrganizationsIntegration", "Effect": "Allow", "Action": [ "iam:CreateServiceLinkedRole", "iam:GetRole" ], "Resource": "arn:aws:iam::*:role/aws-service-role/artifact.amazonaws.com/AWSServiceRoleForArtifact", "Condition": { "StringEquals": { "iam:AWSServiceName": [ "artifact.amazonaws.com" ] } } }, { "Sid": "EnableServiceTrust", "Effect": "Allow", "Action": [ "organizations:ListAWSServiceAccessForOrganization", "organizations:DescribeOrganization" ], "Resource": "*" }, { "Sid": "EnableServiceTrustForArtifact", "Effect": "Allow", "Action": [ "organizations:EnableAWSServiceAccess" ], "Resource": "*", "Condition": { "StringEquals": { "organizations:ServicePrincipal": [ "aws-artifact-account-sync.amazonaws.com" ] } } } ] }
ejemplo Ejemplos de políticas para gestionar acuerdos organizativos

La siguiente política concede permisos para gestionar los acuerdos organizativos. Otro usuario con los permisos necesarios debe configurar los acuerdos organizativos.

{ "Version":"2012-10-17", "Statement": [ { "Sid": "ListAgreementActions", "Effect": "Allow", "Action": [ "artifact:ListAgreements", "artifact:ListCustomerAgreements" ], "Resource": "*" }, { "Sid": "AWSAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetAgreement", "artifact:AcceptNdaForAgreement", "artifact:GetNdaForAgreement", "artifact:AcceptAgreement" ], "Resource": "arn:aws:artifact:::agreement/*" }, { "Sid": "CustomerAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetCustomerAgreement", "artifact:TerminateAgreement" ], "Resource": "arn:aws:artifact::*:customer-agreement/*" }, { "Effect": "Allow", "Action": [ "organizations:DescribeOrganization" ], "Resource": "*" } ] }

La siguiente política concede permisos para ver los acuerdos organizativos.

{ "Version":"2012-10-17", "Statement": [ { "Sid": "ListAgreementActions", "Effect": "Allow", "Action": [ "artifact:ListAgreements", "artifact:ListCustomerAgreements" ], "Resource": "*" }, { "Sid": "AWSAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetAgreement", "artifact:AcceptNdaForAgreement", "artifact:GetNdaForAgreement" ], "Resource": "arn:aws:artifact:::agreement/*" }, { "Sid": "CustomerAgreementActions", "Effect": "Allow", "Action": [ "artifact:GetCustomerAgreement" ], "Resource": "arn:aws:artifact::*:customer-agreement/*" }, { "Effect": "Allow", "Action": [ "organizations:DescribeOrganization" ], "Resource": "*" } ] }
ejemplo Ejemplos de políticas para gestionar las consultas de conformidad
sugerencia

Recomendamos utilizar la política AWSArtifactComplianceInquiriesFullAccessgestionada AWSArtifactComplianceInquiriesReadOnlyAccesso la política gestionada en lugar de definir la suya propia.

La siguiente política otorga permisos de solo lectura para enumerar, ver y exportar las consultas de conformidad y enumerar las etiquetas de los recursos de consulta de conformidad.

{ "Version":"2012-10-17", "Statement": [ { "Sid": "ListComplianceInquiries", "Effect": "Allow", "Action": [ "artifact:ListComplianceInquiries" ], "Resource": "*" }, { "Sid": "ViewAndExportComplianceInquiries", "Effect": "Allow", "Action": [ "artifact:GetComplianceInquiryMetadata", "artifact:ListComplianceInquiryQueries", "artifact:ExportComplianceInquiry", "artifact:ListTagsForResource" ], "Resource": "arn:aws:artifact:*:*:compliance-inquiry/*" } ] }

La siguiente política otorga permisos completos para crear, enumerar, ver, exportar consultas de conformidad y administrar etiquetas para los recursos de consultas de conformidad.

{ "Version":"2012-10-17", "Statement": [ { "Sid": "ListAndCreateComplianceInquiries", "Effect": "Allow", "Action": [ "artifact:ListComplianceInquiries", "artifact:CreateComplianceInquiry" ], "Resource": "*" }, { "Sid": "ViewExportAndTagComplianceInquiries", "Effect": "Allow", "Action": [ "artifact:GetComplianceInquiryMetadata", "artifact:ListComplianceInquiryQueries", "artifact:ExportComplianceInquiry", "artifact:TagResource", "artifact:UntagResource", "artifact:ListTagsForResource" ], "Resource": "arn:aws:artifact:*:*:compliance-inquiry/*" } ] }
ejemplo Ejemplos de políticas para gestionar notificaciones

La siguiente política otorga permisos completos para usar AWS Artifact las notificaciones.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:GetAccountSettings", "artifact:PutAccountSettings", "notifications:AssociateChannel", "notifications:CreateEventRule", "notifications:CreateNotificationConfiguration", "notifications:DeleteEventRule", "notifications:DeleteNotificationConfiguration", "notifications:DisassociateChannel", "notifications:GetEventRule", "notifications:GetNotificationConfiguration", "notifications:ListChannels", "notifications:ListEventRules", "notifications:ListNotificationConfigurations", "notifications:ListNotificationHubs", "notifications:ListTagsForResource", "notifications:TagResource", "notifications:UntagResource", "notifications:UpdateEventRule", "notifications:UpdateNotificationConfiguration", "notifications-contacts:CreateEmailContact", "notifications-contacts:DeleteEmailContact", "notifications-contacts:GetEmailContact", "notifications-contacts:ListEmailContacts", "notifications-contacts:SendActivationCode" ], "Resource": [ "*" ] } ] }

La siguiente política concede permiso para enumerar todas las configuraciones.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:GetAccountSettings", "notifications:ListChannels", "notifications:ListEventRules", "notifications:ListNotificationConfigurations", "notifications:ListNotificationHubs", "notifications-contacts:GetEmailContact" ], "Resource": [ "*" ] } ] }

La siguiente política concede permiso para crear una configuración.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:GetAccountSettings", "artifact:PutAccountSettings", "notifications-contacts:CreateEmailContact", "notifications-contacts:SendActivationCode", "notifications:AssociateChannel", "notifications:CreateEventRule", "notifications:CreateNotificationConfiguration", "notifications:ListEventRules", "notifications:ListNotificationHubs", "notifications:TagResource", "notifications-contacts:ListEmailContacts" ], "Resource": [ "*" ] } ] }

La siguiente política concede permiso para editar una configuración.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "artifact:GetAccountSettings", "artifact:PutAccountSettings", "notifications:AssociateChannel", "notifications:DisassociateChannel", "notifications:GetNotificationConfiguration", "notifications:ListChannels", "notifications:ListEventRules", "notifications:ListTagsForResource", "notifications:TagResource", "notifications:UntagResource", "notifications:UpdateEventRule", "notifications:UpdateNotificationConfiguration", "notifications-contacts:GetEmailContact", "notifications-contacts:ListEmailContacts" ], "Resource": [ "*" ] } ] }

La siguiente política concede permiso para eliminar una configuración.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "notifications:DeleteNotificationConfiguration", "notifications:ListEventRules" ], "Resource": [ "*" ] } ] }

La siguiente política concede permiso para ver los detalles de una configuración.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "notifications:GetNotificationConfiguration", "notifications:ListChannels", "notifications:ListEventRules", "notifications:ListTagsForResource", "notifications-contacts:GetEmailContact" ], "Resource": [ "*" ] } ] }

La siguiente política concede permiso para registrar o anular el registro de los centros de notificaciones.

{ "Version":"2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "notifications:DeregisterNotificationHub", "notifications:RegisterNotificationHub" ], "Resource": [ "*" ] } ] }