Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'RegionAutoscaler':
"""
Get an existing RegionAutoscaler resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = RegionAutoscalerArgs.__new__(RegionAutoscalerArgs)
__props__.__dict__["autoscaling_policy"] = None
__props__.__dict__["creation_timestamp"] = None
__props__.__dict__["description"] = None
__props__.__dict__["kind"] = None
__props__.__dict__["name"] = None
__props__.__dict__["recommended_size"] = None
__props__.__dict__["region"] = None
__props__.__dict__["scaling_schedule_status"] = None
__props__.__dict__["self_link"] = None
__props__.__dict__["self_link_with_id"] = None
__props__.__dict__["status"] = None
__props__.__dict__["status_details"] = None
__props__.__dict__["target"] = None
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'Deployment':
"""
Get an existing Deployment resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = DeploymentArgs.__new__(DeploymentArgs)
__props__.__dict__["api_version"] = None
__props__.__dict__["kind"] = None
__props__.__dict__["metadata"] = None
__props__.__dict__["spec"] = None
__props__.__dict__["status"] = None
return Deployment(resource_name, opts=opts, __props__=__props__)
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'GlobalForwardingRule':
"""
Get an existing GlobalForwardingRule resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = GlobalForwardingRuleArgs.__new__(GlobalForwardingRuleArgs)
__props__.__dict__["ip_address"] = None
__props__.__dict__["ip_protocol"] = None
__props__.__dict__["all_ports"] = None
__props__.__dict__["allow_global_access"] = None
__props__.__dict__["backend_service"] = None
__props__.__dict__["creation_timestamp"] = None
__props__.__dict__["description"] = None
__props__.__dict__["fingerprint"] = None
__props__.__dict__["ip_version"] = None
__props__.__dict__["is_mirroring_collector"] = None
__props__.__dict__["kind"] = None
__props__.__dict__["label_fingerprint"] = None
__props__.__dict__["labels"] = None
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'RepositoryIamPolicy':
"""
Get an existing RepositoryIamPolicy resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = dict()
__props__["bindings"] = None
__props__["etag"] = None
__props__["version"] = None
return RepositoryIamPolicy(resource_name, opts=opts, __props__=__props__)
:param pulumi.Input[str] compute_platform: The destination platform type for the deployment.
:param pulumi.Input[str] deployment_config_name: The name of the group's deployment config. The default is "CodeDeployDefault.OneAtATime".
:param pulumi.Input[str] deployment_group_id: The ID of the CodeDeploy deployment group.
:param pulumi.Input[str] deployment_group_name: The name of the deployment group.
:param pulumi.Input[pulumi.InputType['DeploymentGroupDeploymentStyleArgs']] deployment_style: Configuration block of the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer (documented below).
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DeploymentGroupEc2TagFilterArgs']]]] ec2_tag_filters: Tag filters associated with the deployment group. See the AWS docs for details.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DeploymentGroupEc2TagSetArgs']]]] ec2_tag_sets: Configuration block(s) of Tag filters associated with the deployment group, which are also referred to as tag groups (documented below). See the AWS docs for details.
:param pulumi.Input[pulumi.InputType['DeploymentGroupEcsServiceArgs']] ecs_service: Configuration block(s) of the ECS services for a deployment group (documented below).
:param pulumi.Input[pulumi.InputType['DeploymentGroupLoadBalancerInfoArgs']] load_balancer_info: Single configuration block of the load balancer to use in a blue/green deployment (documented below).
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DeploymentGroupOnPremisesInstanceTagFilterArgs']]]] on_premises_instance_tag_filters: On premise tag filters associated with the group. See the AWS docs for details.
:param pulumi.Input[str] service_role_arn: The service role ARN that allows deployments.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value map of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider .
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DeploymentGroupTriggerConfigurationArgs']]]] trigger_configurations: Configuration block(s) of the triggers for the deployment group (documented below).
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _DeploymentGroupState.__new__(_DeploymentGroupState)
__props__.__dict__["alarm_configuration"] = alarm_configuration
__props__.__dict__["app_name"] = app_name
__props__.__dict__["arn"] = arn
__props__.__dict__["auto_rollback_configuration"] = auto_rollback_configuration
__props__.__dict__["autoscaling_groups"] = autoscaling_groups
__props__.__dict__["blue_green_deployment_config"] = blue_green_deployment_config
__props__.__dict__["compute_platform"] = compute_platform
__props__.__dict__["deployment_config_name"] = deployment_config_name
__props__.__dict__["deployment_group_id"] = deployment_group_id
__props__.__dict__["deployment_group_name"] = deployment_group_name
__props__.__dict__["deployment_style"] = deployment_style
__props__.__dict__["ec2_tag_filters"] = ec2_tag_filters
__props__.__dict__["ec2_tag_sets"] = ec2_tag_sets
user_pool_id: Optional[pulumi.Input[str]] = None) -> 'IdentityProvider':
"""
Get an existing IdentityProvider resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] attribute_mapping: The map of attribute mapping of user pool attributes. [AttributeMapping in AWS API documentation](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#CognitoUserPools-CreateIdentityProvider-request-AttributeMapping)
:param pulumi.Input[Sequence[pulumi.Input[str]]] idp_identifiers: The list of identity providers.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] provider_details: The map of identity details, such as access token
:param pulumi.Input[str] provider_name: The provider name
:param pulumi.Input[str] provider_type: The provider type. [See AWS API for valid values](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateIdentityProvider.html#CognitoUserPools-CreateIdentityProvider-request-ProviderType)
:param pulumi.Input[str] user_pool_id: The user pool id
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _IdentityProviderState.__new__(_IdentityProviderState)
__props__.__dict__["attribute_mapping"] = attribute_mapping
__props__.__dict__["idp_identifiers"] = idp_identifiers
__props__.__dict__["provider_details"] = provider_details
__props__.__dict__["provider_name"] = provider_name
__props__.__dict__["provider_type"] = provider_type
__props__.__dict__["user_pool_id"] = user_pool_id
return IdentityProvider(resource_name, opts=opts, __props__=__props__)
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] authentication: The type of authentication to use. One of `IP`, `GITHUB_HMAC`, or `UNAUTHENTICATED`.
:param pulumi.Input[pulumi.InputType['WebhookAuthenticationConfigurationArgs']] authentication_configuration: An `auth` block. Required for `IP` and `GITHUB_HMAC`. Auth blocks are documented below.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookFilterArgs']]]] filters: One or more `filter` blocks. Filter blocks are documented below.
:param pulumi.Input[str] name: The name of the webhook.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider .
:param pulumi.Input[str] target_action: The name of the action in a pipeline you want to connect to the webhook. The action must be from the source (first) stage of the pipeline.
:param pulumi.Input[str] target_pipeline: The name of the pipeline.
:param pulumi.Input[str] url: The CodePipeline webhook's URL. POST events to this endpoint to trigger the target.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _WebhookState.__new__(_WebhookState)
__props__.__dict__["authentication"] = authentication
__props__.__dict__["authentication_configuration"] = authentication_configuration
__props__.__dict__["filters"] = filters
__props__.__dict__["name"] = name
__props__.__dict__["tags"] = tags
__props__.__dict__["tags_all"] = tags_all
__props__.__dict__["target_action"] = target_action
__props__.__dict__["target_pipeline"] = target_pipeline
__props__.__dict__["url"] = url
return Webhook(resource_name, opts=opts, __props__=__props__)
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'TargetHttpProxy':
"""
Get an existing TargetHttpProxy resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = dict()
__props__["creation_timestamp"] = None
__props__["description"] = None
__props__["fingerprint"] = None
__props__["http_filters"] = None
__props__["kind"] = None
__props__["name"] = None
__props__["proxy_bind"] = None
__props__["region"] = None
__props__["self_link"] = None
__props__["self_link_with_id"] = None
__props__["url_map"] = None
return TargetHttpProxy(resource_name, opts=opts, __props__=__props__)
tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None) -> 'ResolverFirewallRuleGroup':
"""
Get an existing ResolverFirewallRuleGroup resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] arn: The ARN (Amazon Resource Name) of the rule group.
:param pulumi.Input[str] name: A name that lets you identify the rule group, to manage and use it.
:param pulumi.Input[str] owner_id: The AWS account ID for the account that created the rule group. When a rule group is shared with your account, this is the account that has shared the rule group with you.
:param pulumi.Input[str] share_status: Whether the rule group is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Valid values: `NOT_SHARED`, `SHARED_BY_ME`, `SHARED_WITH_ME`
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider .
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _ResolverFirewallRuleGroupState.__new__(_ResolverFirewallRuleGroupState)
__props__.__dict__["arn"] = arn
__props__.__dict__["name"] = name
__props__.__dict__["owner_id"] = owner_id
__props__.__dict__["share_status"] = share_status
__props__.__dict__["tags"] = tags
__props__.__dict__["tags_all"] = tags_all
return ResolverFirewallRuleGroup(resource_name, opts=opts, __props__=__props__)
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None) -> 'Instance':
"""
Get an existing Instance resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = dict()
__props__["advanced_machine_features"] = None
__props__["can_ip_forward"] = None
__props__["confidential_instance_config"] = None
__props__["cpu_platform"] = None
__props__["creation_timestamp"] = None
__props__["deletion_protection"] = None
__props__["description"] = None
__props__["disks"] = None
__props__["display_device"] = None
__props__["erase_windows_vss_signature"] = None
__props__["fingerprint"] = None
__props__["guest_accelerators"] = None
__props__["hostname"] = None