pulumi-aws 7.11.1__py3-none-any.whl → 7.12.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. pulumi_aws/__init__.py +57 -0
  2. pulumi_aws/acm/certificate.py +20 -20
  3. pulumi_aws/acmpca/certificate.py +8 -8
  4. pulumi_aws/apigateway/account.py +0 -4
  5. pulumi_aws/appflow/_inputs.py +33 -0
  6. pulumi_aws/appflow/outputs.py +22 -0
  7. pulumi_aws/appsync/graph_ql_api.py +84 -0
  8. pulumi_aws/bedrock/_inputs.py +97 -21
  9. pulumi_aws/bedrock/agent_agent_alias.py +94 -0
  10. pulumi_aws/bedrock/agentcore_agent_runtime.py +4 -4
  11. pulumi_aws/bedrock/agentcore_browser.py +42 -0
  12. pulumi_aws/bedrock/agentcore_gateway_target.py +217 -7
  13. pulumi_aws/bedrock/agentcore_memory.py +37 -9
  14. pulumi_aws/bedrock/agentcore_oauth2_credential_provider.py +38 -0
  15. pulumi_aws/bedrock/outputs.py +64 -17
  16. pulumi_aws/cloudfront/_inputs.py +15 -14
  17. pulumi_aws/cloudfront/distribution.py +28 -0
  18. pulumi_aws/cloudfront/outputs.py +10 -9
  19. pulumi_aws/cloudhsmv2/cluster.py +64 -0
  20. pulumi_aws/cloudwatch/_inputs.py +9 -8
  21. pulumi_aws/cloudwatch/contributor_managed_insight_rule.py +20 -0
  22. pulumi_aws/cloudwatch/log_delivery_destination.py +53 -12
  23. pulumi_aws/cloudwatch/outputs.py +6 -5
  24. pulumi_aws/codebuild/webhook.py +16 -16
  25. pulumi_aws/codepipeline/webhook.py +16 -16
  26. pulumi_aws/connect/_inputs.py +50 -4
  27. pulumi_aws/connect/outputs.py +95 -4
  28. pulumi_aws/connect/routing_profile.py +42 -18
  29. pulumi_aws/datasync/location_fsx_ontap_file_system.py +34 -0
  30. pulumi_aws/datazone/project.py +24 -0
  31. pulumi_aws/detective/organization_configuration.py +20 -0
  32. pulumi_aws/dms/_inputs.py +3 -3
  33. pulumi_aws/dms/outputs.py +2 -2
  34. pulumi_aws/ec2/__init__.py +1 -0
  35. pulumi_aws/ec2/_inputs.py +182 -0
  36. pulumi_aws/ec2/allowed_images_settings.py +338 -0
  37. pulumi_aws/ec2/get_coip_pools.py +24 -0
  38. pulumi_aws/ec2/image_block_public_access.py +48 -1
  39. pulumi_aws/ec2/outputs.py +167 -0
  40. pulumi_aws/ec2/security_group.py +6 -6
  41. pulumi_aws/ec2/serial_console_access.py +50 -3
  42. pulumi_aws/ec2/vpc_endpoint.py +92 -0
  43. pulumi_aws/ec2clientvpn/authorization_rule.py +7 -7
  44. pulumi_aws/ec2clientvpn/route.py +7 -7
  45. pulumi_aws/ec2transitgateway/instance_connect_endpoint.py +47 -0
  46. pulumi_aws/ecrpublic/get_images.py +24 -0
  47. pulumi_aws/ecs/_inputs.py +172 -33
  48. pulumi_aws/ecs/get_service.py +318 -7
  49. pulumi_aws/ecs/outputs.py +957 -86
  50. pulumi_aws/ecs/service.py +76 -0
  51. pulumi_aws/eks/_inputs.py +195 -5
  52. pulumi_aws/eks/outputs.py +164 -4
  53. pulumi_aws/elasticache/_inputs.py +154 -0
  54. pulumi_aws/elasticache/get_replication_group.py +23 -9
  55. pulumi_aws/elasticache/outputs.py +204 -0
  56. pulumi_aws/elasticache/replication_group.py +115 -0
  57. pulumi_aws/elasticache/reserved_cache_node.py +28 -0
  58. pulumi_aws/finspace/kx_cluster.py +76 -0
  59. pulumi_aws/fis/__init__.py +1 -0
  60. pulumi_aws/fis/target_account_configuration.py +401 -0
  61. pulumi_aws/glue/job.py +7 -7
  62. pulumi_aws/guardduty/malware_protection_plan.py +50 -0
  63. pulumi_aws/guardduty/member_detector_feature.py +42 -0
  64. pulumi_aws/invoicing/__init__.py +11 -0
  65. pulumi_aws/invoicing/_inputs.py +128 -0
  66. pulumi_aws/invoicing/invoice_unit.py +620 -0
  67. pulumi_aws/invoicing/outputs.py +99 -0
  68. pulumi_aws/iot/ca_certificate.py +32 -32
  69. pulumi_aws/iot/get_registration_code.py +8 -8
  70. pulumi_aws/ivschat/logging_configuration.py +28 -0
  71. pulumi_aws/kinesis/get_stream.py +15 -1
  72. pulumi_aws/kinesis/stream.py +47 -0
  73. pulumi_aws/kms/key.py +7 -7
  74. pulumi_aws/licensemanager/license_grant.py +36 -0
  75. pulumi_aws/m2/environment.py +150 -0
  76. pulumi_aws/networkfirewall/tls_inspection_configuration.py +84 -0
  77. pulumi_aws/networkflowmonitor/__init__.py +12 -0
  78. pulumi_aws/networkflowmonitor/_inputs.py +412 -0
  79. pulumi_aws/networkflowmonitor/monitor.py +568 -0
  80. pulumi_aws/networkflowmonitor/outputs.py +302 -0
  81. pulumi_aws/networkflowmonitor/scope.py +443 -0
  82. pulumi_aws/observabilityadmin/__init__.py +11 -0
  83. pulumi_aws/observabilityadmin/_inputs.py +506 -0
  84. pulumi_aws/observabilityadmin/centralization_rule_for_organization.py +637 -0
  85. pulumi_aws/observabilityadmin/outputs.py +415 -0
  86. pulumi_aws/opensearch/_inputs.py +92 -133
  87. pulumi_aws/opensearch/authorize_vpc_endpoint_access.py +4 -4
  88. pulumi_aws/opensearch/domain.py +60 -0
  89. pulumi_aws/opensearch/get_domain.py +16 -9
  90. pulumi_aws/opensearch/outputs.py +131 -2
  91. pulumi_aws/organizations/get_policies.py +2 -2
  92. pulumi_aws/organizations/get_policies_for_target.py +2 -2
  93. pulumi_aws/organizations/get_policy.py +1 -1
  94. pulumi_aws/organizations/organization.py +7 -7
  95. pulumi_aws/organizations/policy.py +35 -7
  96. pulumi_aws/pulumi-plugin.json +1 -1
  97. pulumi_aws/quicksight/analysis.py +108 -0
  98. pulumi_aws/quicksight/dashboard.py +110 -0
  99. pulumi_aws/quicksight/template.py +126 -0
  100. pulumi_aws/redshift/cluster_snapshot.py +28 -0
  101. pulumi_aws/redshift/get_cluster.py +52 -0
  102. pulumi_aws/redshift/snapshot_copy_grant.py +22 -0
  103. pulumi_aws/route53/profiles_association.py +30 -0
  104. pulumi_aws/route53/profiles_resource_association.py +34 -0
  105. pulumi_aws/s3control/multi_region_access_point_policy.py +76 -0
  106. pulumi_aws/s3tables/table.py +76 -1
  107. pulumi_aws/s3tables/table_bucket.py +78 -3
  108. pulumi_aws/sagemaker/_inputs.py +225 -232
  109. pulumi_aws/sagemaker/endpoint_configuration.py +111 -64
  110. pulumi_aws/sagemaker/outputs.py +154 -158
  111. pulumi_aws/ssmincidents/get_response_plan.py +14 -0
  112. pulumi_aws/ssoadmin/account_assignment.py +4 -4
  113. pulumi_aws/transfer/profile.py +20 -0
  114. pulumi_aws/transfer/server.py +7 -0
  115. pulumi_aws/transfer/ssh_key.py +6 -6
  116. pulumi_aws/wafv2/rule_group.py +440 -0
  117. pulumi_aws/workspacesweb/session_logger_association.py +80 -0
  118. pulumi_aws/workspacesweb/trust_store_association.py +24 -0
  119. {pulumi_aws-7.11.1.dist-info → pulumi_aws-7.12.0.dist-info}/METADATA +1 -1
  120. {pulumi_aws-7.11.1.dist-info → pulumi_aws-7.12.0.dist-info}/RECORD +122 -107
  121. {pulumi_aws-7.11.1.dist-info → pulumi_aws-7.12.0.dist-info}/WHEEL +0 -0
  122. {pulumi_aws-7.11.1.dist-info → pulumi_aws-7.12.0.dist-info}/top_level.txt +0 -0
pulumi_aws/dms/outputs.py CHANGED
@@ -964,7 +964,7 @@ class EndpointPostgresSettings(dict):
964
964
  :param _builtins.bool map_jsonb_as_clob: Optional When true, DMS migrates JSONB values as CLOB.
965
965
  :param _builtins.str map_long_varchar_as: Optional When true, DMS migrates LONG values as VARCHAR.
966
966
  :param _builtins.int max_file_size: Specifies the maximum size (in KB) of any .csv file used to transfer data to PostgreSQL. Default is `32,768 KB`.
967
- :param _builtins.str plugin_name: Specifies the plugin to use to create a replication slot. Valid values: `pglogical`, `test_decoding`.
967
+ :param _builtins.str plugin_name: Specifies the plugin to use to create a replication slot. Valid values: `pglogical`, `test-decoding`.
968
968
  :param _builtins.str service_access_role_arn: Specifies the IAM role to use to authenticate the connection.
969
969
  :param _builtins.str slot_name: Sets the name of a previously created logical replication slot for a CDC load of the PostgreSQL source instance.
970
970
  """
@@ -1129,7 +1129,7 @@ class EndpointPostgresSettings(dict):
1129
1129
  @pulumi.getter(name="pluginName")
1130
1130
  def plugin_name(self) -> Optional[_builtins.str]:
1131
1131
  """
1132
- Specifies the plugin to use to create a replication slot. Valid values: `pglogical`, `test_decoding`.
1132
+ Specifies the plugin to use to create a replication slot. Valid values: `pglogical`, `test-decoding`.
1133
1133
  """
1134
1134
  return pulumi.get(self, "plugin_name")
1135
1135
 
@@ -7,6 +7,7 @@ from .. import _utilities
7
7
  import typing
8
8
  # Export this package's modules as members:
9
9
  from ._enums import *
10
+ from .allowed_images_settings import *
10
11
  from .ami import *
11
12
  from .ami_copy import *
12
13
  from .ami_from_instance import *
pulumi_aws/ec2/_inputs.py CHANGED
@@ -16,6 +16,12 @@ from .. import _utilities
16
16
  from ._enums import *
17
17
 
18
18
  __all__ = [
19
+ 'AllowedImagesSettingsImageCriterionArgs',
20
+ 'AllowedImagesSettingsImageCriterionArgsDict',
21
+ 'AllowedImagesSettingsImageCriterionCreationDateConditionArgs',
22
+ 'AllowedImagesSettingsImageCriterionCreationDateConditionArgsDict',
23
+ 'AllowedImagesSettingsImageCriterionDeprecationTimeConditionArgs',
24
+ 'AllowedImagesSettingsImageCriterionDeprecationTimeConditionArgsDict',
19
25
  'AmiCopyEbsBlockDeviceArgs',
20
26
  'AmiCopyEbsBlockDeviceArgsDict',
21
27
  'AmiCopyEphemeralBlockDeviceArgs',
@@ -606,6 +612,182 @@ __all__ = [
606
612
 
607
613
  MYPY = False
608
614
 
615
+ if not MYPY:
616
+ class AllowedImagesSettingsImageCriterionArgsDict(TypedDict):
617
+ creation_date_condition: NotRequired[pulumi.Input['AllowedImagesSettingsImageCriterionCreationDateConditionArgsDict']]
618
+ """
619
+ Condition based on AMI creation date. See `creation_date_condition` below.
620
+ """
621
+ deprecation_time_condition: NotRequired[pulumi.Input['AllowedImagesSettingsImageCriterionDeprecationTimeConditionArgsDict']]
622
+ """
623
+ Condition based on AMI deprecation time. See `deprecation_time_condition` below.
624
+ """
625
+ image_names: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]
626
+ """
627
+ Set of AMI name patterns to allow. Maximum of 50 names.
628
+ """
629
+ image_providers: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]
630
+ """
631
+ Set of image providers to allow. Maximum of 200 providers. Valid values include `amazon`, `aws-marketplace`, `aws-backup-vault`, `none`, or a 12-digit AWS account ID.
632
+ """
633
+ marketplace_product_codes: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]
634
+ """
635
+ Set of AWS Marketplace product codes to allow. Maximum of 50 product codes.
636
+ """
637
+ elif False:
638
+ AllowedImagesSettingsImageCriterionArgsDict: TypeAlias = Mapping[str, Any]
639
+
640
+ @pulumi.input_type
641
+ class AllowedImagesSettingsImageCriterionArgs:
642
+ def __init__(__self__, *,
643
+ creation_date_condition: Optional[pulumi.Input['AllowedImagesSettingsImageCriterionCreationDateConditionArgs']] = None,
644
+ deprecation_time_condition: Optional[pulumi.Input['AllowedImagesSettingsImageCriterionDeprecationTimeConditionArgs']] = None,
645
+ image_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
646
+ image_providers: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
647
+ marketplace_product_codes: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
648
+ """
649
+ :param pulumi.Input['AllowedImagesSettingsImageCriterionCreationDateConditionArgs'] creation_date_condition: Condition based on AMI creation date. See `creation_date_condition` below.
650
+ :param pulumi.Input['AllowedImagesSettingsImageCriterionDeprecationTimeConditionArgs'] deprecation_time_condition: Condition based on AMI deprecation time. See `deprecation_time_condition` below.
651
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] image_names: Set of AMI name patterns to allow. Maximum of 50 names.
652
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] image_providers: Set of image providers to allow. Maximum of 200 providers. Valid values include `amazon`, `aws-marketplace`, `aws-backup-vault`, `none`, or a 12-digit AWS account ID.
653
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] marketplace_product_codes: Set of AWS Marketplace product codes to allow. Maximum of 50 product codes.
654
+ """
655
+ if creation_date_condition is not None:
656
+ pulumi.set(__self__, "creation_date_condition", creation_date_condition)
657
+ if deprecation_time_condition is not None:
658
+ pulumi.set(__self__, "deprecation_time_condition", deprecation_time_condition)
659
+ if image_names is not None:
660
+ pulumi.set(__self__, "image_names", image_names)
661
+ if image_providers is not None:
662
+ pulumi.set(__self__, "image_providers", image_providers)
663
+ if marketplace_product_codes is not None:
664
+ pulumi.set(__self__, "marketplace_product_codes", marketplace_product_codes)
665
+
666
+ @_builtins.property
667
+ @pulumi.getter(name="creationDateCondition")
668
+ def creation_date_condition(self) -> Optional[pulumi.Input['AllowedImagesSettingsImageCriterionCreationDateConditionArgs']]:
669
+ """
670
+ Condition based on AMI creation date. See `creation_date_condition` below.
671
+ """
672
+ return pulumi.get(self, "creation_date_condition")
673
+
674
+ @creation_date_condition.setter
675
+ def creation_date_condition(self, value: Optional[pulumi.Input['AllowedImagesSettingsImageCriterionCreationDateConditionArgs']]):
676
+ pulumi.set(self, "creation_date_condition", value)
677
+
678
+ @_builtins.property
679
+ @pulumi.getter(name="deprecationTimeCondition")
680
+ def deprecation_time_condition(self) -> Optional[pulumi.Input['AllowedImagesSettingsImageCriterionDeprecationTimeConditionArgs']]:
681
+ """
682
+ Condition based on AMI deprecation time. See `deprecation_time_condition` below.
683
+ """
684
+ return pulumi.get(self, "deprecation_time_condition")
685
+
686
+ @deprecation_time_condition.setter
687
+ def deprecation_time_condition(self, value: Optional[pulumi.Input['AllowedImagesSettingsImageCriterionDeprecationTimeConditionArgs']]):
688
+ pulumi.set(self, "deprecation_time_condition", value)
689
+
690
+ @_builtins.property
691
+ @pulumi.getter(name="imageNames")
692
+ def image_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
693
+ """
694
+ Set of AMI name patterns to allow. Maximum of 50 names.
695
+ """
696
+ return pulumi.get(self, "image_names")
697
+
698
+ @image_names.setter
699
+ def image_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
700
+ pulumi.set(self, "image_names", value)
701
+
702
+ @_builtins.property
703
+ @pulumi.getter(name="imageProviders")
704
+ def image_providers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
705
+ """
706
+ Set of image providers to allow. Maximum of 200 providers. Valid values include `amazon`, `aws-marketplace`, `aws-backup-vault`, `none`, or a 12-digit AWS account ID.
707
+ """
708
+ return pulumi.get(self, "image_providers")
709
+
710
+ @image_providers.setter
711
+ def image_providers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
712
+ pulumi.set(self, "image_providers", value)
713
+
714
+ @_builtins.property
715
+ @pulumi.getter(name="marketplaceProductCodes")
716
+ def marketplace_product_codes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
717
+ """
718
+ Set of AWS Marketplace product codes to allow. Maximum of 50 product codes.
719
+ """
720
+ return pulumi.get(self, "marketplace_product_codes")
721
+
722
+ @marketplace_product_codes.setter
723
+ def marketplace_product_codes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
724
+ pulumi.set(self, "marketplace_product_codes", value)
725
+
726
+
727
+ if not MYPY:
728
+ class AllowedImagesSettingsImageCriterionCreationDateConditionArgsDict(TypedDict):
729
+ maximum_days_since_created: NotRequired[pulumi.Input[_builtins.int]]
730
+ """
731
+ Maximum number of days since the AMI was created.
732
+ """
733
+ elif False:
734
+ AllowedImagesSettingsImageCriterionCreationDateConditionArgsDict: TypeAlias = Mapping[str, Any]
735
+
736
+ @pulumi.input_type
737
+ class AllowedImagesSettingsImageCriterionCreationDateConditionArgs:
738
+ def __init__(__self__, *,
739
+ maximum_days_since_created: Optional[pulumi.Input[_builtins.int]] = None):
740
+ """
741
+ :param pulumi.Input[_builtins.int] maximum_days_since_created: Maximum number of days since the AMI was created.
742
+ """
743
+ if maximum_days_since_created is not None:
744
+ pulumi.set(__self__, "maximum_days_since_created", maximum_days_since_created)
745
+
746
+ @_builtins.property
747
+ @pulumi.getter(name="maximumDaysSinceCreated")
748
+ def maximum_days_since_created(self) -> Optional[pulumi.Input[_builtins.int]]:
749
+ """
750
+ Maximum number of days since the AMI was created.
751
+ """
752
+ return pulumi.get(self, "maximum_days_since_created")
753
+
754
+ @maximum_days_since_created.setter
755
+ def maximum_days_since_created(self, value: Optional[pulumi.Input[_builtins.int]]):
756
+ pulumi.set(self, "maximum_days_since_created", value)
757
+
758
+
759
+ if not MYPY:
760
+ class AllowedImagesSettingsImageCriterionDeprecationTimeConditionArgsDict(TypedDict):
761
+ maximum_days_since_deprecated: NotRequired[pulumi.Input[_builtins.int]]
762
+ """
763
+ Maximum number of days since the AMI was deprecated. Setting this to `0` means no deprecated images are allowed.
764
+ """
765
+ elif False:
766
+ AllowedImagesSettingsImageCriterionDeprecationTimeConditionArgsDict: TypeAlias = Mapping[str, Any]
767
+
768
+ @pulumi.input_type
769
+ class AllowedImagesSettingsImageCriterionDeprecationTimeConditionArgs:
770
+ def __init__(__self__, *,
771
+ maximum_days_since_deprecated: Optional[pulumi.Input[_builtins.int]] = None):
772
+ """
773
+ :param pulumi.Input[_builtins.int] maximum_days_since_deprecated: Maximum number of days since the AMI was deprecated. Setting this to `0` means no deprecated images are allowed.
774
+ """
775
+ if maximum_days_since_deprecated is not None:
776
+ pulumi.set(__self__, "maximum_days_since_deprecated", maximum_days_since_deprecated)
777
+
778
+ @_builtins.property
779
+ @pulumi.getter(name="maximumDaysSinceDeprecated")
780
+ def maximum_days_since_deprecated(self) -> Optional[pulumi.Input[_builtins.int]]:
781
+ """
782
+ Maximum number of days since the AMI was deprecated. Setting this to `0` means no deprecated images are allowed.
783
+ """
784
+ return pulumi.get(self, "maximum_days_since_deprecated")
785
+
786
+ @maximum_days_since_deprecated.setter
787
+ def maximum_days_since_deprecated(self, value: Optional[pulumi.Input[_builtins.int]]):
788
+ pulumi.set(self, "maximum_days_since_deprecated", value)
789
+
790
+
609
791
  if not MYPY:
610
792
  class AmiCopyEbsBlockDeviceArgsDict(TypedDict):
611
793
  delete_on_termination: NotRequired[pulumi.Input[_builtins.bool]]
@@ -0,0 +1,338 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from .. import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
18
+
19
+ __all__ = ['AllowedImagesSettingsArgs', 'AllowedImagesSettings']
20
+
21
+ @pulumi.input_type
22
+ class AllowedImagesSettingsArgs:
23
+ def __init__(__self__, *,
24
+ state: pulumi.Input[_builtins.str],
25
+ image_criterions: Optional[pulumi.Input[Sequence[pulumi.Input['AllowedImagesSettingsImageCriterionArgs']]]] = None,
26
+ region: Optional[pulumi.Input[_builtins.str]] = None):
27
+ """
28
+ The set of arguments for constructing a AllowedImagesSettings resource.
29
+ :param pulumi.Input[_builtins.str] state: State of the allowed images settings. Valid values are `enabled` or `audit-mode`.
30
+ :param pulumi.Input[Sequence[pulumi.Input['AllowedImagesSettingsImageCriterionArgs']]] image_criterions: List of image criteria. Maximum of 10 criterion blocks allowed. See `image_criterion` below.
31
+ :param pulumi.Input[_builtins.str] region: Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
32
+ """
33
+ pulumi.set(__self__, "state", state)
34
+ if image_criterions is not None:
35
+ pulumi.set(__self__, "image_criterions", image_criterions)
36
+ if region is not None:
37
+ pulumi.set(__self__, "region", region)
38
+
39
+ @_builtins.property
40
+ @pulumi.getter
41
+ def state(self) -> pulumi.Input[_builtins.str]:
42
+ """
43
+ State of the allowed images settings. Valid values are `enabled` or `audit-mode`.
44
+ """
45
+ return pulumi.get(self, "state")
46
+
47
+ @state.setter
48
+ def state(self, value: pulumi.Input[_builtins.str]):
49
+ pulumi.set(self, "state", value)
50
+
51
+ @_builtins.property
52
+ @pulumi.getter(name="imageCriterions")
53
+ def image_criterions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AllowedImagesSettingsImageCriterionArgs']]]]:
54
+ """
55
+ List of image criteria. Maximum of 10 criterion blocks allowed. See `image_criterion` below.
56
+ """
57
+ return pulumi.get(self, "image_criterions")
58
+
59
+ @image_criterions.setter
60
+ def image_criterions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AllowedImagesSettingsImageCriterionArgs']]]]):
61
+ pulumi.set(self, "image_criterions", value)
62
+
63
+ @_builtins.property
64
+ @pulumi.getter
65
+ def region(self) -> Optional[pulumi.Input[_builtins.str]]:
66
+ """
67
+ Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
68
+ """
69
+ return pulumi.get(self, "region")
70
+
71
+ @region.setter
72
+ def region(self, value: Optional[pulumi.Input[_builtins.str]]):
73
+ pulumi.set(self, "region", value)
74
+
75
+
76
+ @pulumi.input_type
77
+ class _AllowedImagesSettingsState:
78
+ def __init__(__self__, *,
79
+ image_criterions: Optional[pulumi.Input[Sequence[pulumi.Input['AllowedImagesSettingsImageCriterionArgs']]]] = None,
80
+ region: Optional[pulumi.Input[_builtins.str]] = None,
81
+ state: Optional[pulumi.Input[_builtins.str]] = None):
82
+ """
83
+ Input properties used for looking up and filtering AllowedImagesSettings resources.
84
+ :param pulumi.Input[Sequence[pulumi.Input['AllowedImagesSettingsImageCriterionArgs']]] image_criterions: List of image criteria. Maximum of 10 criterion blocks allowed. See `image_criterion` below.
85
+ :param pulumi.Input[_builtins.str] region: Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
86
+ :param pulumi.Input[_builtins.str] state: State of the allowed images settings. Valid values are `enabled` or `audit-mode`.
87
+ """
88
+ if image_criterions is not None:
89
+ pulumi.set(__self__, "image_criterions", image_criterions)
90
+ if region is not None:
91
+ pulumi.set(__self__, "region", region)
92
+ if state is not None:
93
+ pulumi.set(__self__, "state", state)
94
+
95
+ @_builtins.property
96
+ @pulumi.getter(name="imageCriterions")
97
+ def image_criterions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AllowedImagesSettingsImageCriterionArgs']]]]:
98
+ """
99
+ List of image criteria. Maximum of 10 criterion blocks allowed. See `image_criterion` below.
100
+ """
101
+ return pulumi.get(self, "image_criterions")
102
+
103
+ @image_criterions.setter
104
+ def image_criterions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AllowedImagesSettingsImageCriterionArgs']]]]):
105
+ pulumi.set(self, "image_criterions", value)
106
+
107
+ @_builtins.property
108
+ @pulumi.getter
109
+ def region(self) -> Optional[pulumi.Input[_builtins.str]]:
110
+ """
111
+ Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
112
+ """
113
+ return pulumi.get(self, "region")
114
+
115
+ @region.setter
116
+ def region(self, value: Optional[pulumi.Input[_builtins.str]]):
117
+ pulumi.set(self, "region", value)
118
+
119
+ @_builtins.property
120
+ @pulumi.getter
121
+ def state(self) -> Optional[pulumi.Input[_builtins.str]]:
122
+ """
123
+ State of the allowed images settings. Valid values are `enabled` or `audit-mode`.
124
+ """
125
+ return pulumi.get(self, "state")
126
+
127
+ @state.setter
128
+ def state(self, value: Optional[pulumi.Input[_builtins.str]]):
129
+ pulumi.set(self, "state", value)
130
+
131
+
132
+ @pulumi.type_token("aws:ec2/allowedImagesSettings:AllowedImagesSettings")
133
+ class AllowedImagesSettings(pulumi.CustomResource):
134
+ @overload
135
+ def __init__(__self__,
136
+ resource_name: str,
137
+ opts: Optional[pulumi.ResourceOptions] = None,
138
+ image_criterions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AllowedImagesSettingsImageCriterionArgs', 'AllowedImagesSettingsImageCriterionArgsDict']]]]] = None,
139
+ region: Optional[pulumi.Input[_builtins.str]] = None,
140
+ state: Optional[pulumi.Input[_builtins.str]] = None,
141
+ __props__=None):
142
+ """
143
+ Provides EC2 allowed images settings for an AWS account. This feature allows you to control which AMIs can be used to launch EC2 instances in your account based on specified criteria.
144
+
145
+ For more information about the image criteria that can be set, see the [AWS documentation on Allowed AMIs JSON configuration](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html#allowed-amis-json-configuration).
146
+
147
+ > **NOTE:** The AWS API does not delete this resource. When you run `destroy`, the provider will attempt to disable the setting.
148
+
149
+ > **NOTE:** There is only one allowed images settings configuration per AWS account and region. Creating this resource will configure the account-level settings.
150
+
151
+ ## Example Usage
152
+
153
+ ### Enable with Amazon AMIs only
154
+
155
+ ```python
156
+ import pulumi
157
+ import pulumi_aws as aws
158
+
159
+ example = aws.ec2.AllowedImagesSettings("example",
160
+ state="enabled",
161
+ image_criterions=[{
162
+ "image_providers": ["amazon"],
163
+ }])
164
+ ```
165
+
166
+ ### Enable audit mode with specific account IDs
167
+
168
+ ```python
169
+ import pulumi
170
+ import pulumi_aws as aws
171
+
172
+ example = aws.ec2.AllowedImagesSettings("example",
173
+ state="audit-mode",
174
+ image_criterions=[{
175
+ "image_providers": [
176
+ "amazon",
177
+ "123456789012",
178
+ ],
179
+ }])
180
+ ```
181
+
182
+ ## Import
183
+
184
+ Using `pulumi import`, import EC2 allowed images settings. For example:
185
+
186
+ ```sh
187
+ $ pulumi import aws:ec2/allowedImagesSettings:AllowedImagesSettings example us-east-1
188
+ ```
189
+
190
+ :param str resource_name: The name of the resource.
191
+ :param pulumi.ResourceOptions opts: Options for the resource.
192
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AllowedImagesSettingsImageCriterionArgs', 'AllowedImagesSettingsImageCriterionArgsDict']]]] image_criterions: List of image criteria. Maximum of 10 criterion blocks allowed. See `image_criterion` below.
193
+ :param pulumi.Input[_builtins.str] region: Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
194
+ :param pulumi.Input[_builtins.str] state: State of the allowed images settings. Valid values are `enabled` or `audit-mode`.
195
+ """
196
+ ...
197
+ @overload
198
+ def __init__(__self__,
199
+ resource_name: str,
200
+ args: AllowedImagesSettingsArgs,
201
+ opts: Optional[pulumi.ResourceOptions] = None):
202
+ """
203
+ Provides EC2 allowed images settings for an AWS account. This feature allows you to control which AMIs can be used to launch EC2 instances in your account based on specified criteria.
204
+
205
+ For more information about the image criteria that can be set, see the [AWS documentation on Allowed AMIs JSON configuration](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html#allowed-amis-json-configuration).
206
+
207
+ > **NOTE:** The AWS API does not delete this resource. When you run `destroy`, the provider will attempt to disable the setting.
208
+
209
+ > **NOTE:** There is only one allowed images settings configuration per AWS account and region. Creating this resource will configure the account-level settings.
210
+
211
+ ## Example Usage
212
+
213
+ ### Enable with Amazon AMIs only
214
+
215
+ ```python
216
+ import pulumi
217
+ import pulumi_aws as aws
218
+
219
+ example = aws.ec2.AllowedImagesSettings("example",
220
+ state="enabled",
221
+ image_criterions=[{
222
+ "image_providers": ["amazon"],
223
+ }])
224
+ ```
225
+
226
+ ### Enable audit mode with specific account IDs
227
+
228
+ ```python
229
+ import pulumi
230
+ import pulumi_aws as aws
231
+
232
+ example = aws.ec2.AllowedImagesSettings("example",
233
+ state="audit-mode",
234
+ image_criterions=[{
235
+ "image_providers": [
236
+ "amazon",
237
+ "123456789012",
238
+ ],
239
+ }])
240
+ ```
241
+
242
+ ## Import
243
+
244
+ Using `pulumi import`, import EC2 allowed images settings. For example:
245
+
246
+ ```sh
247
+ $ pulumi import aws:ec2/allowedImagesSettings:AllowedImagesSettings example us-east-1
248
+ ```
249
+
250
+ :param str resource_name: The name of the resource.
251
+ :param AllowedImagesSettingsArgs args: The arguments to use to populate this resource's properties.
252
+ :param pulumi.ResourceOptions opts: Options for the resource.
253
+ """
254
+ ...
255
+ def __init__(__self__, resource_name: str, *args, **kwargs):
256
+ resource_args, opts = _utilities.get_resource_args_opts(AllowedImagesSettingsArgs, pulumi.ResourceOptions, *args, **kwargs)
257
+ if resource_args is not None:
258
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
259
+ else:
260
+ __self__._internal_init(resource_name, *args, **kwargs)
261
+
262
+ def _internal_init(__self__,
263
+ resource_name: str,
264
+ opts: Optional[pulumi.ResourceOptions] = None,
265
+ image_criterions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AllowedImagesSettingsImageCriterionArgs', 'AllowedImagesSettingsImageCriterionArgsDict']]]]] = None,
266
+ region: Optional[pulumi.Input[_builtins.str]] = None,
267
+ state: Optional[pulumi.Input[_builtins.str]] = None,
268
+ __props__=None):
269
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
270
+ if not isinstance(opts, pulumi.ResourceOptions):
271
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
272
+ if opts.id is None:
273
+ if __props__ is not None:
274
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
275
+ __props__ = AllowedImagesSettingsArgs.__new__(AllowedImagesSettingsArgs)
276
+
277
+ __props__.__dict__["image_criterions"] = image_criterions
278
+ __props__.__dict__["region"] = region
279
+ if state is None and not opts.urn:
280
+ raise TypeError("Missing required property 'state'")
281
+ __props__.__dict__["state"] = state
282
+ super(AllowedImagesSettings, __self__).__init__(
283
+ 'aws:ec2/allowedImagesSettings:AllowedImagesSettings',
284
+ resource_name,
285
+ __props__,
286
+ opts)
287
+
288
+ @staticmethod
289
+ def get(resource_name: str,
290
+ id: pulumi.Input[str],
291
+ opts: Optional[pulumi.ResourceOptions] = None,
292
+ image_criterions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AllowedImagesSettingsImageCriterionArgs', 'AllowedImagesSettingsImageCriterionArgsDict']]]]] = None,
293
+ region: Optional[pulumi.Input[_builtins.str]] = None,
294
+ state: Optional[pulumi.Input[_builtins.str]] = None) -> 'AllowedImagesSettings':
295
+ """
296
+ Get an existing AllowedImagesSettings resource's state with the given name, id, and optional extra
297
+ properties used to qualify the lookup.
298
+
299
+ :param str resource_name: The unique name of the resulting resource.
300
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
301
+ :param pulumi.ResourceOptions opts: Options for the resource.
302
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AllowedImagesSettingsImageCriterionArgs', 'AllowedImagesSettingsImageCriterionArgsDict']]]] image_criterions: List of image criteria. Maximum of 10 criterion blocks allowed. See `image_criterion` below.
303
+ :param pulumi.Input[_builtins.str] region: Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
304
+ :param pulumi.Input[_builtins.str] state: State of the allowed images settings. Valid values are `enabled` or `audit-mode`.
305
+ """
306
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
307
+
308
+ __props__ = _AllowedImagesSettingsState.__new__(_AllowedImagesSettingsState)
309
+
310
+ __props__.__dict__["image_criterions"] = image_criterions
311
+ __props__.__dict__["region"] = region
312
+ __props__.__dict__["state"] = state
313
+ return AllowedImagesSettings(resource_name, opts=opts, __props__=__props__)
314
+
315
+ @_builtins.property
316
+ @pulumi.getter(name="imageCriterions")
317
+ def image_criterions(self) -> pulumi.Output[Optional[Sequence['outputs.AllowedImagesSettingsImageCriterion']]]:
318
+ """
319
+ List of image criteria. Maximum of 10 criterion blocks allowed. See `image_criterion` below.
320
+ """
321
+ return pulumi.get(self, "image_criterions")
322
+
323
+ @_builtins.property
324
+ @pulumi.getter
325
+ def region(self) -> pulumi.Output[_builtins.str]:
326
+ """
327
+ Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
328
+ """
329
+ return pulumi.get(self, "region")
330
+
331
+ @_builtins.property
332
+ @pulumi.getter
333
+ def state(self) -> pulumi.Output[_builtins.str]:
334
+ """
335
+ State of the allowed images settings. Valid values are `enabled` or `audit-mode`.
336
+ """
337
+ return pulumi.get(self, "state")
338
+
@@ -97,6 +97,18 @@ def get_coip_pools(filters: Optional[Sequence[Union['GetCoipPoolsFilterArgs', 'G
97
97
  """
98
98
  Provides information for multiple EC2 Customer-Owned IP Pools, such as their identifiers.
99
99
 
100
+ ## Example Usage
101
+
102
+ The following shows outputting all COIP Pool Ids.
103
+
104
+ ```python
105
+ import pulumi
106
+ import pulumi_aws as aws
107
+
108
+ foo = aws.ec2.get_coip_pools()
109
+ pulumi.export("foo", foo.ids)
110
+ ```
111
+
100
112
 
101
113
  :param Sequence[Union['GetCoipPoolsFilterArgs', 'GetCoipPoolsFilterArgsDict']] filters: Custom filter block as described below.
102
114
 
@@ -126,6 +138,18 @@ def get_coip_pools_output(filters: Optional[pulumi.Input[Optional[Sequence[Union
126
138
  """
127
139
  Provides information for multiple EC2 Customer-Owned IP Pools, such as their identifiers.
128
140
 
141
+ ## Example Usage
142
+
143
+ The following shows outputting all COIP Pool Ids.
144
+
145
+ ```python
146
+ import pulumi
147
+ import pulumi_aws as aws
148
+
149
+ foo = aws.ec2.get_coip_pools()
150
+ pulumi.export("foo", foo.ids)
151
+ ```
152
+
129
153
 
130
154
  :param Sequence[Union['GetCoipPoolsFilterArgs', 'GetCoipPoolsFilterArgsDict']] filters: Custom filter block as described below.
131
155