def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, audit_stream_arn: Optional[pulumi.Input[str]] = None, device_ca_certificate: Optional[pulumi.Input[str]] = None, display_name: Optional[pulumi.Input[str]] = None, identity_provider: Optional[pulumi.Input[ pulumi.InputType['FleetIdentityProviderArgs']]] = None, name: Optional[pulumi.Input[str]] = None, network: Optional[pulumi.Input[ pulumi.InputType['FleetNetworkArgs']]] = None, optimize_for_end_user_location: Optional[ pulumi.Input[bool]] = None, __props__=None, __name__=None, __opts__=None): """ ## Example Usage Basic usage: ```python import pulumi import pulumi_aws as aws example = aws.worklink.Fleet("example") ``` Network Configuration Usage: ```python import pulumi import pulumi_aws as aws example = aws.worklink.Fleet("example", network=aws.worklink.FleetNetworkArgs( vpc_id=aws_vpc["test"]["id"], subnet_ids=[[__item["id"] for __item in aws_subnet["test"]]], security_group_ids=[aws_security_group["test"]["id"]], )) ``` Identity Provider Configuration Usage: ```python import pulumi import pulumi_aws as aws test = aws.worklink.Fleet("test", identity_provider=aws.worklink.FleetIdentityProviderArgs( type="SAML", saml_metadata=(lambda path: open(path).read())("saml-metadata.xml"), )) ``` ## Import WorkLink can be imported using the ARN, e.g. ```sh $ pulumi import aws:worklink/fleet:Fleet test arn:aws:worklink::123456789012:fleet/example ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] audit_stream_arn: The ARN of the Amazon Kinesis data stream that receives the audit events. Kinesis data stream name must begin with `"AmazonWorkLink-"`. :param pulumi.Input[str] device_ca_certificate: The certificate chain, including intermediate certificates and the root certificate authority certificate used to issue device certificates. :param pulumi.Input[str] display_name: The name of the fleet. :param pulumi.Input[pulumi.InputType['FleetIdentityProviderArgs']] identity_provider: Provide this to allow manage the identity provider configuration for the fleet. Fields documented below. :param pulumi.Input[str] name: A region-unique name for the AMI. :param pulumi.Input[pulumi.InputType['FleetNetworkArgs']] network: Provide this to allow manage the company network configuration for the fleet. Fields documented below. :param pulumi.Input[bool] optimize_for_end_user_location: The option to optimize for better performance by routing traffic through the closest AWS Region to users, which may be outside of your home Region. Defaults to `true`. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() __props__['audit_stream_arn'] = audit_stream_arn __props__['device_ca_certificate'] = device_ca_certificate __props__['display_name'] = display_name __props__['identity_provider'] = identity_provider __props__['name'] = name __props__['network'] = network __props__[ 'optimize_for_end_user_location'] = optimize_for_end_user_location __props__['arn'] = None __props__['company_code'] = None __props__['created_time'] = None __props__['last_updated_time'] = None super(Fleet, __self__).__init__('aws:worklink/fleet:Fleet', resource_name, __props__, opts)
def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, action: Optional[pulumi.Input[pulumi.InputType['ScheduledQueryRulesAlertActionArgs']]] = None, authorized_resource_ids: Optional[pulumi.Input[List[pulumi.Input[str]]]] = None, data_source_id: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, frequency: Optional[pulumi.Input[float]] = None, location: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, query: Optional[pulumi.Input[str]] = None, query_type: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, severity: Optional[pulumi.Input[float]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, throttling: Optional[pulumi.Input[float]] = None, time_window: Optional[pulumi.Input[float]] = None, trigger: Optional[pulumi.Input[pulumi.InputType['ScheduledQueryRulesAlertTriggerArgs']]] = None) -> 'ScheduledQueryRulesAlert': """ Get an existing ScheduledQueryRulesAlert 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[pulumi.InputType['ScheduledQueryRulesAlertActionArgs']] action: An `action` block as defined below. :param pulumi.Input[List[pulumi.Input[str]]] authorized_resource_ids: List of Resource IDs referred into query. :param pulumi.Input[str] data_source_id: The resource URI over which log search query is to be run. :param pulumi.Input[str] description: The description of the scheduled query rule. :param pulumi.Input[bool] enabled: Whether this scheduled query rule is enabled. Default is `true`. :param pulumi.Input[float] frequency: Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive). :param pulumi.Input[str] name: The name of the scheduled query rule. Changing this forces a new resource to be created. :param pulumi.Input[str] query: Log search query. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the scheduled query rule instance. :param pulumi.Input[float] severity: Severity of the alert. Possible values include: 0, 1, 2, 3, or 4. :param pulumi.Input[float] throttling: Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive). :param pulumi.Input[float] time_window: Time window for which data needs to be fetched for query (must be greater than or equal to `frequency`). Values must be between 5 and 2880 (inclusive). :param pulumi.Input[pulumi.InputType['ScheduledQueryRulesAlertTriggerArgs']] trigger: The condition that results in the alert rule being run. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = dict() __props__["action"] = action __props__["authorized_resource_ids"] = authorized_resource_ids __props__["data_source_id"] = data_source_id __props__["description"] = description __props__["enabled"] = enabled __props__["frequency"] = frequency __props__["location"] = location __props__["name"] = name __props__["query"] = query __props__["query_type"] = query_type __props__["resource_group_name"] = resource_group_name __props__["severity"] = severity __props__["tags"] = tags __props__["throttling"] = throttling __props__["time_window"] = time_window __props__["trigger"] = trigger return ScheduledQueryRulesAlert(resource_name, opts=opts, __props__=__props__)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, api_id: Optional[pulumi.Input[str]] = None, api_key_required: Optional[pulumi.Input[bool]] = None, authorization_scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorization_type: Optional[pulumi.Input[str]] = None, authorizer_id: Optional[pulumi.Input[str]] = None, model_selection_expression: Optional[pulumi.Input[str]] = None, operation_name: Optional[pulumi.Input[str]] = None, request_models: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, route_key: Optional[pulumi.Input[str]] = None, route_response_selection_expression: Optional[pulumi.Input[str]] = None, target: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ Manages an Amazon API Gateway Version 2 route. More information can be found in the [Amazon API Gateway Developer Guide](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html). ## Example Usage ### Basic ```python import pulumi import pulumi_aws as aws example = aws.apigatewayv2.Route("example", api_id=aws_apigatewayv2_api["example"]["id"], route_key="$default") ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] api_id: The API identifier. :param pulumi.Input[bool] api_key_required: Boolean whether an API key is required for the route. Defaults to `false`. :param pulumi.Input[Sequence[pulumi.Input[str]]] authorization_scopes: The authorization scopes supported by this route. The scopes are used with a JWT authorizer to authorize the method invocation. :param pulumi.Input[str] authorization_type: The authorization type for the route. For WebSocket APIs, valid values are `NONE` for open access, `AWS_IAM` for using AWS IAM permissions, and `CUSTOM` for using a Lambda authorizer. For HTTP APIs, valid values are `NONE` for open access, or `JWT` for using JSON Web Tokens. Defaults to `NONE`. :param pulumi.Input[str] authorizer_id: The identifier of the `apigatewayv2.Authorizer` resource to be associated with this route, if the authorizationType is `CUSTOM`. :param pulumi.Input[str] model_selection_expression: The [model selection expression](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-model-selection-expressions) for the route. :param pulumi.Input[str] operation_name: The operation name for the route. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] request_models: The request models for the route. :param pulumi.Input[str] route_key: The route key for the route. For HTTP APIs, the route key can be either `$default`, or a combination of an HTTP method and resource path, for example, `GET /pets`. :param pulumi.Input[str] route_response_selection_expression: The [route response selection expression](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-route-response-selection-expressions) for the route. :param pulumi.Input[str] target: The target for the route. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() if api_id is None: raise TypeError("Missing required property 'api_id'") __props__['api_id'] = api_id __props__['api_key_required'] = api_key_required __props__['authorization_scopes'] = authorization_scopes __props__['authorization_type'] = authorization_type __props__['authorizer_id'] = authorizer_id __props__['model_selection_expression'] = model_selection_expression __props__['operation_name'] = operation_name __props__['request_models'] = request_models if route_key is None: raise TypeError("Missing required property 'route_key'") __props__['route_key'] = route_key __props__['route_response_selection_expression'] = route_response_selection_expression __props__['target'] = target super(Route, __self__).__init__( 'aws:apigatewayv2/route:Route', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, connection_string: Optional[pulumi.Input[str]] = None, iothub_name: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ Manages an IotHub ServiceBus Queue Endpoint > **NOTE:** Endpoints can be defined either directly on the `iot.IoTHub` resource, or using the `azurerm_iothub_endpoint_*` resources - but the two ways of defining the endpoints cannot be used together. If both are used against the same IoTHub, spurious changes will occur. Also, defining a `azurerm_iothub_endpoint_*` resource and another endpoint of a different type directly on the `iot.IoTHub` resource is not supported. ## Example Usage ```python import pulumi import pulumi_azure as azure example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="East US") example_namespace = azure.servicebus.Namespace("exampleNamespace", location=example_resource_group.location, resource_group_name=example_resource_group.name, sku="Standard") example_queue = azure.servicebus.Queue("exampleQueue", resource_group_name=example_resource_group.name, namespace_name=example_namespace.name, enable_partitioning=True) example_queue_authorization_rule = azure.servicebus.QueueAuthorizationRule("exampleQueueAuthorizationRule", namespace_name=example_namespace.name, queue_name=example_queue.name, resource_group_name=example_resource_group.name, listen=False, send=True, manage=False) example_io_t_hub = azure.iot.IoTHub("exampleIoTHub", resource_group_name=example_resource_group.name, location=example_resource_group.location, sku=azure.iot.IoTHubSkuArgs( name="B1", tier="Basic", capacity=1, ), tags={ "purpose": "example", }) example_endpoint_servicebus_queue = azure.iot.EndpointServicebusQueue("exampleEndpointServicebusQueue", resource_group_name=example_resource_group.name, iothub_name=example_io_t_hub.name, connection_string=example_queue_authorization_rule.primary_connection_string) ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] connection_string: The connection string for the endpoint. :param pulumi.Input[str] name: The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: `events`, `operationsMonitoringEvents`, `fileNotifications` and `$default`. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() if connection_string is None: raise TypeError( "Missing required property 'connection_string'") __props__['connection_string'] = connection_string if iothub_name is None: raise TypeError("Missing required property 'iothub_name'") __props__['iothub_name'] = iothub_name __props__['name'] = name if resource_group_name is None: raise TypeError( "Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name super(EndpointServicebusQueue, __self__).__init__( 'azure:iot/endpointServicebusQueue:EndpointServicebusQueue', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, condition: Optional[pulumi.Input[pulumi.InputType['SubnetworkIAMBindingConditionArgs']]] = None, members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, project: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, role: Optional[pulumi.Input[str]] = None, subnetwork: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ Three different resources help you manage your IAM policy for Compute Engine Subnetwork. Each of these resources serves a different use case: * `compute.SubnetworkIAMPolicy`: Authoritative. Sets the IAM policy for the subnetwork and replaces any existing policy already attached. * `compute.SubnetworkIAMBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the subnetwork are preserved. * `compute.SubnetworkIAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the subnetwork are preserved. > **Note:** `compute.SubnetworkIAMPolicy` **cannot** be used in conjunction with `compute.SubnetworkIAMBinding` and `compute.SubnetworkIAMMember` or they will fight over what your policy should be. > **Note:** `compute.SubnetworkIAMBinding` resources **can be** used in conjunction with `compute.SubnetworkIAMMember` resources **only if** they do not grant privilege to the same role. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[pulumi.InputType['SubnetworkIAMBindingConditionArgs']] condition: ) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding. Structure is documented below. :param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. :param pulumi.Input[str] region: The GCP region for this subnetwork. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration. :param pulumi.Input[str] role: The role that should be applied. Only one `compute.SubnetworkIAMBinding` can be used per role. Note that custom roles must be of the format `[projects|organizations]/{parent-name}/roles/{role-name}`. :param pulumi.Input[str] subnetwork: Used to find the parent resource to bind the IAM policy to """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() __props__['condition'] = condition if members is None: raise TypeError("Missing required property 'members'") __props__['members'] = members __props__['project'] = project __props__['region'] = region if role is None: raise TypeError("Missing required property 'role'") __props__['role'] = role if subnetwork is None: raise TypeError("Missing required property 'subnetwork'") __props__['subnetwork'] = subnetwork __props__['etag'] = None super(SubnetworkIAMBinding, __self__).__init__( 'gcp:compute/subnetworkIAMBinding:SubnetworkIAMBinding', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, location_id: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ Sets the default Google Cloud Platform (GCP) resource location for the specified FirebaseProject. This method creates an App Engine application with a default Cloud Storage bucket, located in the specified locationId. This location must be one of the available GCP resource locations. After the default GCP resource location is finalized, or if it was already set, it cannot be changed. The default GCP resource location for the specified FirebaseProject might already be set because either the GCP Project already has an App Engine application or defaultLocation.finalize was previously called with a specified locationId. Any new calls to defaultLocation.finalize with a different specified locationId will return a 409 error. To get more information about ProjectLocation, see: * [API documentation](https://firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects.defaultLocation/finalize) * How-to Guides * [Official Documentation](https://firebase.google.com/) ## Example Usage :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] location_id: The ID of the default GCP resource location for the Project. The location must be one of the available GCP resource locations. :param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it is not provided, the provider project is used. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() if location_id is None: raise TypeError("Missing required property 'location_id'") __props__['location_id'] = location_id __props__['project'] = project super(ProjectLocation, __self__).__init__( 'gcp:firebase/projectLocation:ProjectLocation', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, firewall_policy_name: Optional[pulumi.Input[str]] = None, id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, priority: Optional[pulumi.Input[int]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, rule_group_name: Optional[pulumi.Input[str]] = None, rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['FirewallPolicyFilterRuleArgs'], pulumi.InputType['FirewallPolicyNatRuleArgs']]]]]] = None, __props__=None, __name__=None, __opts__=None): """ Rule Group resource. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] firewall_policy_name: The name of the Firewall Policy. :param pulumi.Input[str] id: Resource ID. :param pulumi.Input[str] name: The name of the resource that is unique within a resource group. This name can be used to access the resource. :param pulumi.Input[int] priority: Priority of the Firewall Policy Rule Group resource. :param pulumi.Input[str] resource_group_name: The name of the resource group. :param pulumi.Input[str] rule_group_name: The name of the FirewallPolicyRuleGroup. :param pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['FirewallPolicyFilterRuleArgs'], pulumi.InputType['FirewallPolicyNatRuleArgs']]]]] rules: Group of Firewall Policy rules. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() if firewall_policy_name is None: raise TypeError("Missing required property 'firewall_policy_name'") __props__['firewall_policy_name'] = firewall_policy_name __props__['id'] = id __props__['name'] = name __props__['priority'] = priority if resource_group_name is None: raise TypeError("Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name if rule_group_name is None: raise TypeError("Missing required property 'rule_group_name'") __props__['rule_group_name'] = rule_group_name __props__['rules'] = rules __props__['etag'] = None __props__['provisioning_state'] = None __props__['type'] = None alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:network/latest:FirewallPolicyRuleGroup"), pulumi.Alias(type_="azure-nextgen:network/v20190601:FirewallPolicyRuleGroup"), pulumi.Alias(type_="azure-nextgen:network/v20190701:FirewallPolicyRuleGroup"), pulumi.Alias(type_="azure-nextgen:network/v20190801:FirewallPolicyRuleGroup"), pulumi.Alias(type_="azure-nextgen:network/v20190901:FirewallPolicyRuleGroup"), pulumi.Alias(type_="azure-nextgen:network/v20191101:FirewallPolicyRuleGroup"), pulumi.Alias(type_="azure-nextgen:network/v20200301:FirewallPolicyRuleGroup"), pulumi.Alias(type_="azure-nextgen:network/v20200401:FirewallPolicyRuleGroup")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(FirewallPolicyRuleGroup, __self__).__init__( 'azure-nextgen:network/v20191201:FirewallPolicyRuleGroup', resource_name, __props__, opts)
def __init__( __self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, active_directory_id: Optional[pulumi.Input[str]] = None, automatic_backup_retention_days: Optional[ pulumi.Input[int]] = None, copy_tags_to_backups: Optional[pulumi.Input[bool]] = None, daily_automatic_backup_start_time: Optional[ pulumi.Input[str]] = None, deployment_type: Optional[pulumi.Input[str]] = None, kms_key_id: Optional[pulumi.Input[str]] = None, preferred_subnet_id: Optional[pulumi.Input[str]] = None, security_group_ids: Optional[pulumi.Input[Sequence[ pulumi.Input[str]]]] = None, self_managed_active_directory: Optional[pulumi.Input[ pulumi.InputType[ 'WindowsFileSystemSelfManagedActiveDirectoryArgs']]] = None, skip_final_backup: Optional[pulumi.Input[bool]] = None, storage_capacity: Optional[pulumi.Input[int]] = None, storage_type: Optional[pulumi.Input[str]] = None, subnet_ids: Optional[pulumi.Input[Sequence[ pulumi.Input[str]]]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, throughput_capacity: Optional[pulumi.Input[int]] = None, weekly_maintenance_start_time: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ Manages a FSx Windows File System. See the [FSx Windows Guide](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/what-is.html) for more information. > **NOTE:** Either the `active_directory_id` argument or `self_managed_active_directory` configuration block must be specified. ## Example Usage ### Using AWS Directory Service Additional information for using AWS Directory Service with Windows File Systems can be found in the [FSx Windows Guide](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/fsx-aws-managed-ad.html). ```python import pulumi import pulumi_aws as aws example = aws.fsx.WindowsFileSystem("example", active_directory_id=aws_directory_service_directory["example"]["id"], kms_key_id=aws_kms_key["example"]["arn"], storage_capacity=300, subnet_ids=[aws_subnet["example"]["id"]], throughput_capacity=1024) ``` ### Using a Self-Managed Microsoft Active Directory Additional information for using AWS Directory Service with Windows File Systems can be found in the [FSx Windows Guide](https://docs.aws.amazon.com/fsx/latest/WindowsGuide/self-managed-AD.html). ```python import pulumi import pulumi_aws as aws example = aws.fsx.WindowsFileSystem("example", kms_key_id=aws_kms_key["example"]["arn"], storage_capacity=300, subnet_ids=[aws_subnet["example"]["id"]], throughput_capacity=1024, self_managed_active_directory=aws.fsx.WindowsFileSystemSelfManagedActiveDirectoryArgs( dns_ips=[ "10.0.0.111", "10.0.0.222", ], domain_name="corp.example.com", password="******", username="******", )) ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] active_directory_id: The ID for an existing Microsoft Active Directory instance that the file system should join when it's created. Cannot be specified with `self_managed_active_directory`. :param pulumi.Input[int] automatic_backup_retention_days: The number of days to retain automatic backups. Minimum of `0` and maximum of `35`. Defaults to `7`. Set to `0` to disable. :param pulumi.Input[bool] copy_tags_to_backups: A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to `false`. :param pulumi.Input[str] daily_automatic_backup_start_time: The preferred time (in `HH:MM` format) to take daily automatic backups, in the UTC time zone. :param pulumi.Input[str] deployment_type: Specifies the file system deployment type, valid values are `MULTI_AZ_1` and `SINGLE_AZ_1`. Default value is `SINGLE_AZ_1`. :param pulumi.Input[str] kms_key_id: ARN for the KMS Key to encrypt the file system at rest. Defaults to an AWS managed KMS Key. :param pulumi.Input[str] preferred_subnet_id: Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is `MULTI_AZ_1`. :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. :param pulumi.Input[pulumi.InputType['WindowsFileSystemSelfManagedActiveDirectoryArgs']] self_managed_active_directory: Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with `active_directory_id`. Detailed below. :param pulumi.Input[bool] skip_final_backup: When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. :param pulumi.Input[int] storage_capacity: Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to `HDD` the minimum value is 2000. :param pulumi.Input[str] storage_type: Specifies the storage type, Valid values are `SSD` and `HDD`. `HDD` is supported on `SINGLE_AZ_1` and `MULTI_AZ_1` Windows file system deployment types. Default value is `SSD`. :param pulumi.Input[Sequence[pulumi.Input[str]]] subnet_ids: A list of IDs for the subnets that the file system will be accessible from. To specify more than a single subnet set `deployment_type` to `MULTI_AZ_1`. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the file system. :param pulumi.Input[int] throughput_capacity: Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `8` and maximum of `2048`. :param pulumi.Input[str] weekly_maintenance_start_time: The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() __props__['active_directory_id'] = active_directory_id __props__[ 'automatic_backup_retention_days'] = automatic_backup_retention_days __props__['copy_tags_to_backups'] = copy_tags_to_backups __props__[ 'daily_automatic_backup_start_time'] = daily_automatic_backup_start_time __props__['deployment_type'] = deployment_type __props__['kms_key_id'] = kms_key_id __props__['preferred_subnet_id'] = preferred_subnet_id __props__['security_group_ids'] = security_group_ids __props__[ 'self_managed_active_directory'] = self_managed_active_directory __props__['skip_final_backup'] = skip_final_backup if storage_capacity is None: raise TypeError("Missing required property 'storage_capacity'") __props__['storage_capacity'] = storage_capacity __props__['storage_type'] = storage_type if subnet_ids is None: raise TypeError("Missing required property 'subnet_ids'") __props__['subnet_ids'] = subnet_ids __props__['tags'] = tags if throughput_capacity is None: raise TypeError( "Missing required property 'throughput_capacity'") __props__['throughput_capacity'] = throughput_capacity __props__[ 'weekly_maintenance_start_time'] = weekly_maintenance_start_time __props__['arn'] = None __props__['dns_name'] = None __props__['network_interface_ids'] = None __props__['owner_id'] = None __props__['preferred_file_server_ip'] = None __props__['remote_administration_endpoint'] = None __props__['vpc_id'] = None super(WindowsFileSystem, __self__).__init__('aws:fsx/windowsFileSystem:WindowsFileSystem', resource_name, __props__, opts)
def get( resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, active_directory_id: Optional[pulumi.Input[str]] = None, arn: Optional[pulumi.Input[str]] = None, automatic_backup_retention_days: Optional[pulumi.Input[int]] = None, copy_tags_to_backups: Optional[pulumi.Input[bool]] = None, daily_automatic_backup_start_time: Optional[pulumi.Input[str]] = None, deployment_type: Optional[pulumi.Input[str]] = None, dns_name: Optional[pulumi.Input[str]] = None, kms_key_id: Optional[pulumi.Input[str]] = None, network_interface_ids: Optional[pulumi.Input[Sequence[ pulumi.Input[str]]]] = None, owner_id: Optional[pulumi.Input[str]] = None, preferred_file_server_ip: Optional[pulumi.Input[str]] = None, preferred_subnet_id: Optional[pulumi.Input[str]] = None, remote_administration_endpoint: Optional[pulumi.Input[str]] = None, security_group_ids: Optional[pulumi.Input[Sequence[ pulumi.Input[str]]]] = None, self_managed_active_directory: Optional[pulumi.Input[pulumi.InputType[ 'WindowsFileSystemSelfManagedActiveDirectoryArgs']]] = None, skip_final_backup: Optional[pulumi.Input[bool]] = None, storage_capacity: Optional[pulumi.Input[int]] = None, storage_type: Optional[pulumi.Input[str]] = None, subnet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, throughput_capacity: Optional[pulumi.Input[int]] = None, vpc_id: Optional[pulumi.Input[str]] = None, weekly_maintenance_start_time: Optional[pulumi.Input[str]] = None ) -> 'WindowsFileSystem': """ Get an existing WindowsFileSystem 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] active_directory_id: The ID for an existing Microsoft Active Directory instance that the file system should join when it's created. Cannot be specified with `self_managed_active_directory`. :param pulumi.Input[str] arn: Amazon Resource Name of the file system. :param pulumi.Input[int] automatic_backup_retention_days: The number of days to retain automatic backups. Minimum of `0` and maximum of `35`. Defaults to `7`. Set to `0` to disable. :param pulumi.Input[bool] copy_tags_to_backups: A boolean flag indicating whether tags on the file system should be copied to backups. Defaults to `false`. :param pulumi.Input[str] daily_automatic_backup_start_time: The preferred time (in `HH:MM` format) to take daily automatic backups, in the UTC time zone. :param pulumi.Input[str] deployment_type: Specifies the file system deployment type, valid values are `MULTI_AZ_1` and `SINGLE_AZ_1`. Default value is `SINGLE_AZ_1`. :param pulumi.Input[str] dns_name: DNS name for the file system, e.g. `fs-12345678.corp.example.com` (domain name matching the Active Directory domain name) :param pulumi.Input[str] kms_key_id: ARN for the KMS Key to encrypt the file system at rest. Defaults to an AWS managed KMS Key. :param pulumi.Input[Sequence[pulumi.Input[str]]] network_interface_ids: Set of Elastic Network Interface identifiers from which the file system is accessible. :param pulumi.Input[str] owner_id: AWS account identifier that created the file system. :param pulumi.Input[str] preferred_file_server_ip: The IP address of the primary, or preferred, file server. :param pulumi.Input[str] preferred_subnet_id: Specifies the subnet in which you want the preferred file server to be located. Required for when deployment type is `MULTI_AZ_1`. :param pulumi.Input[str] remote_administration_endpoint: For `MULTI_AZ_1` deployment types, use this endpoint when performing administrative tasks on the file system using Amazon FSx Remote PowerShell. For `SINGLE_AZ_1` deployment types, this is the DNS name of the file system. :param pulumi.Input[Sequence[pulumi.Input[str]]] security_group_ids: A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. :param pulumi.Input[pulumi.InputType['WindowsFileSystemSelfManagedActiveDirectoryArgs']] self_managed_active_directory: Configuration block that Amazon FSx uses to join the Windows File Server instance to your self-managed (including on-premises) Microsoft Active Directory (AD) directory. Cannot be specified with `active_directory_id`. Detailed below. :param pulumi.Input[bool] skip_final_backup: When enabled, will skip the default final backup taken when the file system is deleted. This configuration must be applied separately before attempting to delete the resource to have the desired behavior. Defaults to `false`. :param pulumi.Input[int] storage_capacity: Storage capacity (GiB) of the file system. Minimum of 32 and maximum of 65536. If the storage type is set to `HDD` the minimum value is 2000. :param pulumi.Input[str] storage_type: Specifies the storage type, Valid values are `SSD` and `HDD`. `HDD` is supported on `SINGLE_AZ_1` and `MULTI_AZ_1` Windows file system deployment types. Default value is `SSD`. :param pulumi.Input[Sequence[pulumi.Input[str]]] subnet_ids: A list of IDs for the subnets that the file system will be accessible from. To specify more than a single subnet set `deployment_type` to `MULTI_AZ_1`. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A map of tags to assign to the file system. :param pulumi.Input[int] throughput_capacity: Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `8` and maximum of `2048`. :param pulumi.Input[str] vpc_id: Identifier of the Virtual Private Cloud for the file system. :param pulumi.Input[str] weekly_maintenance_start_time: The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) __props__ = dict() __props__["active_directory_id"] = active_directory_id __props__["arn"] = arn __props__[ "automatic_backup_retention_days"] = automatic_backup_retention_days __props__["copy_tags_to_backups"] = copy_tags_to_backups __props__[ "daily_automatic_backup_start_time"] = daily_automatic_backup_start_time __props__["deployment_type"] = deployment_type __props__["dns_name"] = dns_name __props__["kms_key_id"] = kms_key_id __props__["network_interface_ids"] = network_interface_ids __props__["owner_id"] = owner_id __props__["preferred_file_server_ip"] = preferred_file_server_ip __props__["preferred_subnet_id"] = preferred_subnet_id __props__[ "remote_administration_endpoint"] = remote_administration_endpoint __props__["security_group_ids"] = security_group_ids __props__[ "self_managed_active_directory"] = self_managed_active_directory __props__["skip_final_backup"] = skip_final_backup __props__["storage_capacity"] = storage_capacity __props__["storage_type"] = storage_type __props__["subnet_ids"] = subnet_ids __props__["tags"] = tags __props__["throughput_capacity"] = throughput_capacity __props__["vpc_id"] = vpc_id __props__[ "weekly_maintenance_start_time"] = weekly_maintenance_start_time return WindowsFileSystem(resource_name, opts=opts, __props__=__props__)
def __init__( __self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, administration: Optional[pulumi.Input[pulumi.InputType[ 'DedicatedCapacityAdministratorsArgs']]] = None, dedicated_capacity_name: Optional[pulumi.Input[str]] = None, location: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, sku: Optional[pulumi.Input[ pulumi.InputType['ResourceSkuArgs']]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, __props__=None, __name__=None, __opts__=None): """ Represents an instance of a Dedicated Capacity resource. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[pulumi.InputType['DedicatedCapacityAdministratorsArgs']] administration: A collection of Dedicated capacity administrators :param pulumi.Input[str] dedicated_capacity_name: The name of the Dedicated capacity. It must be a minimum of 3 characters, and a maximum of 63. :param pulumi.Input[str] location: Location of the PowerBI Dedicated resource. :param pulumi.Input[str] resource_group_name: The name of the Azure Resource group of which a given PowerBIDedicated capacity is part. This name must be at least 1 character in length, and no more than 90. :param pulumi.Input[pulumi.InputType['ResourceSkuArgs']] sku: The SKU of the PowerBI Dedicated resource. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Key-value pairs of additional resource provisioning properties. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() __props__['administration'] = administration if dedicated_capacity_name is None and not opts.urn: raise TypeError( "Missing required property 'dedicated_capacity_name'") __props__['dedicated_capacity_name'] = dedicated_capacity_name __props__['location'] = location if resource_group_name is None and not opts.urn: raise TypeError( "Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name if sku is None and not opts.urn: raise TypeError("Missing required property 'sku'") __props__['sku'] = sku __props__['tags'] = tags __props__['name'] = None __props__['provisioning_state'] = None __props__['state'] = None __props__['type'] = None alias_opts = pulumi.ResourceOptions(aliases=[ pulumi.Alias( type_="azure-nextgen:powerbidedicated/latest:CapacityDetails") ]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(CapacityDetails, __self__).__init__( 'azure-nextgen:powerbidedicated/v20171001:CapacityDetails', resource_name, __props__, opts)
def __init__(__self__, resource_name, opts=None, description=None, is_public=None, name=None, organization_id=None, region=None, __props__=None, __name__=None, __opts__=None): """ Creates and manages Scaleway Container Registry. For more information see [the documentation](https://developers.scaleway.com/en/products/registry/api/). ## Attibutes Reference In addition to all arguments above, the following attibutes are exported: - `id` - The ID of the namespace - `endpoint` - Endpoint reachable by docker. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: The description of the container registry namespace :param pulumi.Input[bool] is_public: Define the default visibity policy :param pulumi.Input[str] name: The name of the container registry namespace :param pulumi.Input[str] organization_id: The organization_id you want to attach the resource to :param pulumi.Input[str] region: The region you want to attach the resource to """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() __props__['description'] = description __props__['is_public'] = is_public __props__['name'] = name __props__['organization_id'] = organization_id __props__['region'] = region __props__['endpoint'] = None super(RegistryNamespaceBeta, __self__).__init__( 'scaleway:index/registryNamespaceBeta:RegistryNamespaceBeta', resource_name, __props__, opts)
def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource: if typ == "azure-nextgen:media/v20180701:AccountFilter": return AccountFilter(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:Asset": return Asset(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:AssetFilter": return AssetFilter(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:ContentKeyPolicy": return ContentKeyPolicy(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:Job": return Job(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:LiveEvent": return LiveEvent(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:LiveOutput": return LiveOutput(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:MediaService": return MediaService(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:StreamingEndpoint": return StreamingEndpoint(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:StreamingLocator": return StreamingLocator(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:StreamingPolicy": return StreamingPolicy(name, pulumi.ResourceOptions(urn=urn)) elif typ == "azure-nextgen:media/v20180701:Transform": return Transform(name, pulumi.ResourceOptions(urn=urn)) else: raise Exception(f"unknown resource type {typ}")
def __init__(__self__, resource_name, opts=None, additional_properties=None, annotations=None, data_factory_name=None, description=None, folder=None, linked_service_name=None, name=None, parameters=None, resource_group_name=None, schema_columns=None, table_name=None, __props__=None, __name__=None, __opts__=None): """ Manages a MySQL Dataset inside a Azure Data Factory. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[dict] additional_properties: A map of additional properties to associate with the Data Factory Dataset MySQL. :param pulumi.Input[list] annotations: List of tags that can be used for describing the Data Factory Dataset MySQL. :param pulumi.Input[str] data_factory_name: The Data Factory name in which to associate the Dataset with. Changing this forces a new resource. :param pulumi.Input[str] description: The description for the Data Factory Dataset MySQL. :param pulumi.Input[str] folder: The folder that this Dataset is in. If not specified, the Dataset will appear at the root level. :param pulumi.Input[str] linked_service_name: The Data Factory Linked Service name in which to associate the Dataset with. :param pulumi.Input[str] name: Specifies the name of the Data Factory Dataset MySQL. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions. :param pulumi.Input[dict] parameters: A map of parameters to associate with the Data Factory Dataset MySQL. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the Data Factory Dataset MySQL. Changing this forces a new resource :param pulumi.Input[list] schema_columns: A `schema_column` block as defined below. :param pulumi.Input[str] table_name: The table name of the Data Factory Dataset MySQL. The **schema_columns** object supports the following: * `description` (`pulumi.Input[str]`) - The description of the column. * `name` (`pulumi.Input[str]`) - The name of the column. * `type` (`pulumi.Input[str]`) - Type of the column. Valid values are `Byte`, `Byte[]`, `Boolean`, `Date`, `DateTime`,`DateTimeOffset`, `Decimal`, `Double`, `Guid`, `Int16`, `Int32`, `Int64`, `Single`, `String`, `TimeSpan`. Please note these values are case sensitive. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() __props__['additional_properties'] = additional_properties __props__['annotations'] = annotations if data_factory_name is None: raise TypeError( "Missing required property 'data_factory_name'") __props__['data_factory_name'] = data_factory_name __props__['description'] = description __props__['folder'] = folder if linked_service_name is None: raise TypeError( "Missing required property 'linked_service_name'") __props__['linked_service_name'] = linked_service_name __props__['name'] = name __props__['parameters'] = parameters if resource_group_name is None: raise TypeError( "Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name __props__['schema_columns'] = schema_columns __props__['table_name'] = table_name super(DatasetMysql, __self__).__init__('azure:datafactory/datasetMysql:DatasetMysql', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, account_name: Optional[pulumi.Input[str]] = None, container_name: Optional[pulumi.Input[str]] = None, database_name: Optional[pulumi.Input[str]] = None, identity: Optional[pulumi.Input[pulumi.InputType['ManagedServiceIdentityArgs']]] = None, location: Optional[pulumi.Input[str]] = None, options: Optional[pulumi.Input[pulumi.InputType['CreateUpdateOptionsArgs']]] = None, resource: Optional[pulumi.Input[pulumi.InputType['SqlStoredProcedureResourceArgs']]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, stored_procedure_name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, __props__=None, __name__=None, __opts__=None): """ An Azure Cosmos DB storedProcedure. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] account_name: Cosmos DB database account name. :param pulumi.Input[str] container_name: Cosmos DB container name. :param pulumi.Input[str] database_name: Cosmos DB database name. :param pulumi.Input[pulumi.InputType['ManagedServiceIdentityArgs']] identity: Identity for the resource. :param pulumi.Input[str] location: The location of the resource group to which the resource belongs. :param pulumi.Input[pulumi.InputType['CreateUpdateOptionsArgs']] options: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. :param pulumi.Input[pulumi.InputType['SqlStoredProcedureResourceArgs']] resource: The standard JSON format of a storedProcedure :param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive. :param pulumi.Input[str] stored_procedure_name: Cosmos DB storedProcedure name. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() if account_name is None: raise TypeError("Missing required property 'account_name'") __props__['account_name'] = account_name if container_name is None: raise TypeError("Missing required property 'container_name'") __props__['container_name'] = container_name if database_name is None: raise TypeError("Missing required property 'database_name'") __props__['database_name'] = database_name __props__['identity'] = identity __props__['location'] = location if options is None: raise TypeError("Missing required property 'options'") __props__['options'] = options if resource is None: raise TypeError("Missing required property 'resource'") __props__['resource'] = resource if resource_group_name is None: raise TypeError("Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name if stored_procedure_name is None: raise TypeError("Missing required property 'stored_procedure_name'") __props__['stored_procedure_name'] = stored_procedure_name __props__['tags'] = tags __props__['name'] = None __props__['type'] = None alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:documentdb/latest:SqlResourceSqlStoredProcedure"), pulumi.Alias(type_="azure-nextgen:documentdb/v20190801:SqlResourceSqlStoredProcedure"), pulumi.Alias(type_="azure-nextgen:documentdb/v20191212:SqlResourceSqlStoredProcedure"), pulumi.Alias(type_="azure-nextgen:documentdb/v20200301:SqlResourceSqlStoredProcedure"), pulumi.Alias(type_="azure-nextgen:documentdb/v20200401:SqlResourceSqlStoredProcedure"), pulumi.Alias(type_="azure-nextgen:documentdb/v20200901:SqlResourceSqlStoredProcedure")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(SqlResourceSqlStoredProcedure, __self__).__init__( 'azure-nextgen:documentdb/v20200601preview:SqlResourceSqlStoredProcedure', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, project: Optional[pulumi.Input[str]] = None, replication: Optional[pulumi.Input[pulumi.InputType['SecretReplicationArgs']]] = None, secret_id: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ A Secret is a logical secret whose value and versions can be accessed. To get more information about Secret, see: * [API documentation](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets) ## Example Usage ### Secret Config Basic ```python import pulumi import pulumi_gcp as gcp secret_basic = gcp.secretmanager.Secret("secret-basic", labels={ "label": "my-label", }, replication=gcp.secretmanager.SecretReplicationArgs( user_managed=gcp.secretmanager.SecretReplicationUserManagedArgs( replicas=[ gcp.secretmanager.SecretReplicationUserManagedReplicaArgs( location="us-central1", ), gcp.secretmanager.SecretReplicationUserManagedReplicaArgs( location="us-east1", ), ], ), ), secret_id="secret") ``` ## Import Secret can be imported using any of these accepted formats ```sh $ pulumi import gcp:secretmanager/secret:Secret default projects/{{project}}/secrets/{{secret_id}} ``` ```sh $ pulumi import gcp:secretmanager/secret:Secret default {{project}}/{{secret_id}} ``` ```sh $ pulumi import gcp:secretmanager/secret:Secret default {{secret_id}} ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: The labels assigned to this Secret. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be assigned to a given resource. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. :param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it is not provided, the provider project is used. :param pulumi.Input[pulumi.InputType['SecretReplicationArgs']] replication: The replication policy of the secret data attached to the Secret. It cannot be changed after the Secret has been created. Structure is documented below. :param pulumi.Input[str] secret_id: This must be unique within the project. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() __props__['labels'] = labels __props__['project'] = project if replication is None: raise TypeError("Missing required property 'replication'") __props__['replication'] = replication if secret_id is None: raise TypeError("Missing required property 'secret_id'") __props__['secret_id'] = secret_id __props__['create_time'] = None __props__['name'] = None super(Secret, __self__).__init__( 'gcp:secretmanager/secret:Secret', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, load_balancer_name: Optional[pulumi.Input[str]] = None, policy_attributes: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LoadBalancerPolicyPolicyAttributeArgs']]]]] = None, policy_name: Optional[pulumi.Input[str]] = None, policy_type_name: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ Provides a load balancer policy, which can be attached to an ELB listener or backend server. ## Example Usage ```python import pulumi import pulumi_aws as aws wu_tang = aws.elb.LoadBalancer("wu-tang", availability_zones=["us-east-1a"], listeners=[aws.elb.LoadBalancerListenerArgs( instance_port=443, instance_protocol="http", lb_port=443, lb_protocol="https", ssl_certificate_id="arn:aws:iam::000000000000:server-certificate/wu-tang.net", )], tags={ "Name": "wu-tang", }) wu_tang_ca_pubkey_policy = aws.elb.LoadBalancerPolicy("wu-tang-ca-pubkey-policy", load_balancer_name=wu_tang.name, policy_name="wu-tang-ca-pubkey-policy", policy_type_name="PublicKeyPolicyType", policy_attributes=[aws.elb.LoadBalancerPolicyPolicyAttributeArgs( name="PublicKey", value=(lambda path: open(path).read())("wu-tang-pubkey"), )]) wu_tang_root_ca_backend_auth_policy = aws.elb.LoadBalancerPolicy("wu-tang-root-ca-backend-auth-policy", load_balancer_name=wu_tang.name, policy_name="wu-tang-root-ca-backend-auth-policy", policy_type_name="BackendServerAuthenticationPolicyType", policy_attributes=[aws.elb.LoadBalancerPolicyPolicyAttributeArgs( name="PublicKeyPolicyName", value=aws_load_balancer_policy["wu-tang-root-ca-pubkey-policy"]["policy_name"], )]) wu_tang_ssl = aws.elb.LoadBalancerPolicy("wu-tang-ssl", load_balancer_name=wu_tang.name, policy_name="wu-tang-ssl", policy_type_name="SSLNegotiationPolicyType", policy_attributes=[ aws.elb.LoadBalancerPolicyPolicyAttributeArgs( name="ECDHE-ECDSA-AES128-GCM-SHA256", value="true", ), aws.elb.LoadBalancerPolicyPolicyAttributeArgs( name="Protocol-TLSv1.2", value="true", ), ]) wu_tang_ssl_tls_1_1 = aws.elb.LoadBalancerPolicy("wu-tang-ssl-tls-1-1", load_balancer_name=wu_tang.name, policy_name="wu-tang-ssl", policy_type_name="SSLNegotiationPolicyType", policy_attributes=[aws.elb.LoadBalancerPolicyPolicyAttributeArgs( name="Reference-Security-Policy", value="ELBSecurityPolicy-TLS-1-1-2017-01", )]) wu_tang_backend_auth_policies_443 = aws.elb.LoadBalancerBackendServerPolicy("wu-tang-backend-auth-policies-443", load_balancer_name=wu_tang.name, instance_port=443, policy_names=[wu_tang_root_ca_backend_auth_policy.policy_name]) wu_tang_listener_policies_443 = aws.elb.ListenerPolicy("wu-tang-listener-policies-443", load_balancer_name=wu_tang.name, load_balancer_port=443, policy_names=[wu_tang_ssl.policy_name]) ``` Where the file `pubkey` in the current directory contains only the _public key_ of the certificate. ```python import pulumi ``` This example shows how to enable backend authentication for an ELB as well as customize the TLS settings. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] load_balancer_name: The load balancer on which the policy is defined. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['LoadBalancerPolicyPolicyAttributeArgs']]]] policy_attributes: Policy attribute to apply to the policy. :param pulumi.Input[str] policy_name: The name of the load balancer policy. :param pulumi.Input[str] policy_type_name: The policy type. """ pulumi.log.warn("LoadBalancerPolicy is deprecated: aws.elasticloadbalancing.LoadBalancerPolicy has been deprecated in favor of aws.elb.LoadBalancerPolicy") if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() if load_balancer_name is None: raise TypeError("Missing required property 'load_balancer_name'") __props__['load_balancer_name'] = load_balancer_name __props__['policy_attributes'] = policy_attributes if policy_name is None: raise TypeError("Missing required property 'policy_name'") __props__['policy_name'] = policy_name if policy_type_name is None: raise TypeError("Missing required property 'policy_type_name'") __props__['policy_type_name'] = policy_type_name super(LoadBalancerPolicy, __self__).__init__( 'aws:elasticloadbalancing/loadBalancerPolicy:LoadBalancerPolicy', resource_name, __props__, opts)
def __init__( __self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, certificate: Optional[pulumi.Input[ pulumi.InputType['CertificateCertificateArgs']]] = None, certificate_policy: Optional[pulumi.Input[ pulumi.InputType['CertificateCertificatePolicyArgs']]] = None, key_vault_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, __props__=None, __name__=None, __opts__=None): """ Manages a Key Vault Certificate. ## Example Usage ### Generating A New Certificate) ```python import pulumi import pulumi_azure as azure current = azure.core.get_client_config() example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe") example_key_vault = azure.keyvault.KeyVault("exampleKeyVault", location=example_resource_group.location, resource_group_name=example_resource_group.name, tenant_id=current.tenant_id, sku_name="standard", access_policies=[azure.keyvault.KeyVaultAccessPolicyArgs( tenant_id=current.tenant_id, object_id=current.object_id, certificate_permissions=[ "create", "delete", "deleteissuers", "get", "getissuers", "import", "list", "listissuers", "managecontacts", "manageissuers", "setissuers", "update", ], key_permissions=[ "backup", "create", "decrypt", "delete", "encrypt", "get", "import", "list", "purge", "recover", "restore", "sign", "unwrapKey", "update", "verify", "wrapKey", ], secret_permissions=[ "backup", "delete", "get", "list", "purge", "recover", "restore", "set", ], )], tags={ "environment": "Production", }) example_certificate = azure.keyvault.Certificate("exampleCertificate", key_vault_id=example_key_vault.id, certificate_policy=azure.keyvault.CertificateCertificatePolicyArgs( issuer_parameters=azure.keyvault.CertificateCertificatePolicyIssuerParametersArgs( name="Self", ), key_properties={ "exportable": True, "key_size": 2048, "key_type": "RSA", "reuseKey": True, }, lifetime_actions=[azure.keyvault.CertificateCertificatePolicyLifetimeActionArgs( action=azure.keyvault.CertificateCertificatePolicyLifetimeActionActionArgs( action_type="AutoRenew", ), trigger=azure.keyvault.CertificateCertificatePolicyLifetimeActionTriggerArgs( days_before_expiry=30, ), )], secret_properties=azure.keyvault.CertificateCertificatePolicySecretPropertiesArgs( content_type="application/x-pkcs12", ), x509_certificate_properties=azure.keyvault.CertificateCertificatePolicyX509CertificatePropertiesArgs( extended_key_usages=["1.3.6.1.5.5.7.3.1"], key_usages=[ "cRLSign", "dataEncipherment", "digitalSignature", "keyAgreement", "keyCertSign", "keyEncipherment", ], subject_alternative_names=azure.keyvault.CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNamesArgs( dns_names=[ "internal.contoso.com", "domain.hello.world", ], ), subject="CN=hello-world", validity_in_months=12, ), )) ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[pulumi.InputType['CertificateCertificateArgs']] certificate: A `certificate` block as defined below, used to Import an existing certificate. :param pulumi.Input[pulumi.InputType['CertificateCertificatePolicyArgs']] certificate_policy: A `certificate_policy` block as defined below. :param pulumi.Input[str] key_vault_id: The ID of the Key Vault where the Certificate should be created. :param pulumi.Input[str] name: Specifies the name of the Key Vault Certificate. Changing this forces a new resource to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() __props__['certificate'] = certificate if certificate_policy is None: raise TypeError( "Missing required property 'certificate_policy'") __props__['certificate_policy'] = certificate_policy if key_vault_id is None: raise TypeError("Missing required property 'key_vault_id'") __props__['key_vault_id'] = key_vault_id __props__['name'] = name __props__['tags'] = tags __props__['certificate_attributes'] = None __props__['certificate_data'] = None __props__['secret_id'] = None __props__['thumbprint'] = None __props__['version'] = None alias_opts = pulumi.ResourceOptions(aliases=[ pulumi.Alias(type_="azure:keyvault/certifiate:Certifiate") ]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Certificate, __self__).__init__('azure:keyvault/certificate:Certificate', resource_name, __props__, opts)
def __init__(__self__, resource_name, opts=None, database_name=None, deletion_protection=None, engine=None, engine_version=None, global_cluster_identifier=None, storage_encrypted=None, __props__=None, __name__=None, __opts__=None): """ Manages an RDS Global Cluster, which is an Aurora global database spread across multiple regions. The global database contains a single primary cluster with read-write capability, and a read-only secondary cluster that receives data from the primary cluster through high-speed replication performed by the Aurora storage subsystem. More information about Aurora global databases can be found in the [Aurora User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html#aurora-global-database-creating). ## Example Usage ```python import pulumi import pulumi_aws as aws import pulumi_pulumi as pulumi primary = pulumi.providers.Aws("primary", region="us-east-2") secondary = pulumi.providers.Aws("secondary", region="us-west-2") example = aws.rds.GlobalCluster("example", global_cluster_identifier="example") primary_cluster = aws.rds.Cluster("primaryCluster", engine_mode="global", global_cluster_identifier=example.id) primary_cluster_instance = aws.rds.ClusterInstance("primaryClusterInstance", cluster_identifier=primary_cluster.id) secondary_cluster = aws.rds.Cluster("secondaryCluster", engine_mode="global", global_cluster_identifier=example.id) secondary_cluster_instance = aws.rds.ClusterInstance("secondaryClusterInstance", cluster_identifier=secondary_cluster.id) ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] database_name: Name for an automatically created database on cluster creation. :param pulumi.Input[bool] deletion_protection: If the Global Cluster should have deletion protection enabled. The database can't be deleted when this value is set to `true`. The default is `false`. :param pulumi.Input[str] engine: Name of the database engine to be used for this DB cluster. Valid values: `aurora`, `aurora-mysql`, `aurora-postgresql`. Defaults to `aurora`. :param pulumi.Input[str] engine_version: Engine version of the Aurora global database. * **NOTE:** When the engine is set to `aurora-mysql`, an engine version compatible with global database is required. The earliest available version is `5.7.mysql_aurora.2.06.0`. :param pulumi.Input[str] global_cluster_identifier: The global cluster identifier. :param pulumi.Input[bool] storage_encrypted: Specifies whether the DB cluster is encrypted. The default is `false`. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() __props__['database_name'] = database_name __props__['deletion_protection'] = deletion_protection __props__['engine'] = engine __props__['engine_version'] = engine_version if global_cluster_identifier is None: raise TypeError("Missing required property 'global_cluster_identifier'") __props__['global_cluster_identifier'] = global_cluster_identifier __props__['storage_encrypted'] = storage_encrypted __props__['arn'] = None __props__['global_cluster_resource_id'] = None super(GlobalCluster, __self__).__init__( 'aws:rds/globalCluster:GlobalCluster', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, account_name: Optional[pulumi.Input[str]] = None, compute_policy_name: Optional[pulumi.Input[str]] = None, max_degree_of_parallelism_per_job: Optional[pulumi.Input[int]] = None, min_priority_per_job: Optional[pulumi.Input[int]] = None, object_id: Optional[pulumi.Input[str]] = None, object_type: Optional[pulumi.Input[Union[str, 'AADObjectType']]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ Data Lake Analytics compute policy information. Latest API Version: 2016-11-01. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] account_name: The name of the Data Lake Analytics account. :param pulumi.Input[str] compute_policy_name: The name of the compute policy to create or update. :param pulumi.Input[int] max_degree_of_parallelism_per_job: The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed. :param pulumi.Input[int] min_priority_per_job: The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed. :param pulumi.Input[str] object_id: The AAD object identifier for the entity to create a policy for. :param pulumi.Input[Union[str, 'AADObjectType']] object_type: The type of AAD object the object identifier refers to. :param pulumi.Input[str] resource_group_name: The name of the Azure resource group. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() if account_name is None and not opts.urn: raise TypeError("Missing required property 'account_name'") __props__['account_name'] = account_name if compute_policy_name is None and not opts.urn: raise TypeError("Missing required property 'compute_policy_name'") __props__['compute_policy_name'] = compute_policy_name __props__['max_degree_of_parallelism_per_job'] = max_degree_of_parallelism_per_job __props__['min_priority_per_job'] = min_priority_per_job if object_id is None and not opts.urn: raise TypeError("Missing required property 'object_id'") __props__['object_id'] = object_id if object_type is None and not opts.urn: raise TypeError("Missing required property 'object_type'") __props__['object_type'] = object_type if resource_group_name is None and not opts.urn: raise TypeError("Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name __props__['name'] = None __props__['type'] = None alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:datalakeanalytics/v20151001preview:ComputePolicy"), pulumi.Alias(type_="azure-nextgen:datalakeanalytics/v20161101:ComputePolicy")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(ComputePolicy, __self__).__init__( 'azure-nextgen:datalakeanalytics/latest:ComputePolicy', resource_name, __props__, opts)
def __init__( __self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, access_role: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, email: Optional[pulumi.Input[str]] = None, handle: Optional[pulumi.Input[str]] = None, is_admin: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, role: Optional[pulumi.Input[str]] = None, roles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, send_user_invitation: Optional[pulumi.Input[bool]] = None, __props__=None, __name__=None, __opts__=None): """ Provides a Datadog user resource. This can be used to create and manage Datadog users. ## Example Usage ```python import pulumi import pulumi_datadog as datadog ro_role = datadog.get_role(filter="Datadog Read Only Role") # Create a new Datadog user foo = datadog.User("foo", email="*****@*****.**", roles=[ro_role.id]) ``` ## Schema ### Required - **email** (String) Email address for user. ### Optional - **access_role** (String, Deprecated) Role description for user. Can be `st` (standard user), `adm` (admin user) or `ro` (read-only user). Default is `st`. `access_role` is ignored for new users created with this resource. New users have to use the `roles` attribute. - **disabled** (Boolean) Whether the user is disabled. - **handle** (String, Deprecated) The user handle, must be a valid email. - **id** (String) The ID of this resource. - **is_admin** (Boolean, Deprecated) Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan. - **name** (String) Name for user. - **role** (String, Deprecated) Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan. - **roles** (Set of String) A list a role IDs to assign to the user. - **send_user_invitation** (Boolean) Whether an invitation email should be sent when the user is created. ### Read-only - **user_invitation_id** (String) The ID of the user invitation that was sent when creating the user. - **verified** (Boolean) Returns true if Datadog user is verified. ## Import Import is supported using the following syntax ```sh $ pulumi import datadog:index/user:User example_user 6f1b44c0-30b2-11eb-86bc-279f7c1ebaa4 ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] access_role: Role description for user. Can be `st` (standard user), `adm` (admin user) or `ro` (read-only user). Default is `st`. `access_role` is ignored for new users created with this resource. New users have to use the `roles` attribute. :param pulumi.Input[bool] disabled: Whether the user is disabled. :param pulumi.Input[str] email: Email address for user. :param pulumi.Input[str] handle: The user handle, must be a valid email. :param pulumi.Input[bool] is_admin: Whether the user is an administrator. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan. :param pulumi.Input[str] name: Name for user. :param pulumi.Input[str] role: Role description for user. Warning: the corresponding query parameter is ignored by the Datadog API, thus the argument would always trigger an execution plan. :param pulumi.Input[Sequence[pulumi.Input[str]]] roles: A list a role IDs to assign to the user. :param pulumi.Input[bool] send_user_invitation: Whether an invitation email should be sent when the user is created. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() if access_role is not None and not opts.urn: warnings.warn( """This parameter is replaced by `roles` and will be removed from the next Major version""", DeprecationWarning) pulumi.log.warn( "access_role is deprecated: This parameter is replaced by `roles` and will be removed from the next Major version" ) __props__['access_role'] = access_role __props__['disabled'] = disabled if email is None and not opts.urn: raise TypeError("Missing required property 'email'") __props__['email'] = email if handle is not None and not opts.urn: warnings.warn( """This parameter is deprecated and will be removed from the next Major version""", DeprecationWarning) pulumi.log.warn( "handle is deprecated: This parameter is deprecated and will be removed from the next Major version" ) __props__['handle'] = handle if is_admin is not None and not opts.urn: warnings.warn( """This parameter is replaced by `roles` and will be removed from the next Major version""", DeprecationWarning) pulumi.log.warn( "is_admin is deprecated: This parameter is replaced by `roles` and will be removed from the next Major version" ) __props__['is_admin'] = is_admin __props__['name'] = name if role is not None and not opts.urn: warnings.warn( """This parameter was removed from the API and has no effect""", DeprecationWarning) pulumi.log.warn( "role is deprecated: This parameter was removed from the API and has no effect" ) __props__['role'] = role __props__['roles'] = roles __props__['send_user_invitation'] = send_user_invitation __props__['user_invitation_id'] = None __props__['verified'] = None super(User, __self__).__init__('datadog:index/user:User', resource_name, __props__, opts)
def _internal_init( __self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, kms_key_id: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, name_prefix: Optional[pulumi.Input[str]] = None, policy: Optional[pulumi.Input[str]] = None, recovery_window_in_days: Optional[pulumi.Input[int]] = None, rotation_lambda_arn: Optional[pulumi.Input[str]] = None, rotation_rules: Optional[pulumi.Input[ pulumi.InputType['SecretRotationRulesArgs']]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, __props__=None, __name__=None, __opts__=None): if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() __props__['description'] = description __props__['kms_key_id'] = kms_key_id __props__['name'] = name __props__['name_prefix'] = name_prefix __props__['policy'] = policy __props__['recovery_window_in_days'] = recovery_window_in_days if rotation_lambda_arn is not None and not opts.urn: warnings.warn( """Use the aws_secretsmanager_secret_rotation resource instead""", DeprecationWarning) pulumi.log.warn( """rotation_lambda_arn is deprecated: Use the aws_secretsmanager_secret_rotation resource instead""" ) __props__['rotation_lambda_arn'] = rotation_lambda_arn if rotation_rules is not None and not opts.urn: warnings.warn( """Use the aws_secretsmanager_secret_rotation resource instead""", DeprecationWarning) pulumi.log.warn( """rotation_rules is deprecated: Use the aws_secretsmanager_secret_rotation resource instead""" ) __props__['rotation_rules'] = rotation_rules __props__['tags'] = tags __props__['arn'] = None __props__['rotation_enabled'] = None super(Secret, __self__).__init__('aws:secretsmanager/secret:Secret', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, alert_notifications: Optional[pulumi.Input[bool]] = None, alerts_to_admins: Optional[pulumi.Input[bool]] = None, email: Optional[pulumi.Input[str]] = None, phone: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ Manages the subscription's Security Center Contact. > **NOTE:** Owner access permission is required. ## Example Usage ```python import pulumi import pulumi_azure as azure example = azure.securitycenter.Contact("example", alert_notifications=True, alerts_to_admins=True, email="*****@*****.**", phone="+1-555-555-5555") ``` ## Import The contact can be imported using the `resource id`, e.g. ```sh $ pulumi import azure:securitycenter/contact:Contact example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/securityContacts/default1 ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] alert_notifications: Whether to send security alerts notifications to the security contact. :param pulumi.Input[bool] alerts_to_admins: Whether to send security alerts notifications to subscription admins. :param pulumi.Input[str] email: The email of the Security Center Contact. :param pulumi.Input[str] phone: The phone number of the Security Center Contact. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() if alert_notifications is None: raise TypeError( "Missing required property 'alert_notifications'") __props__['alert_notifications'] = alert_notifications if alerts_to_admins is None: raise TypeError("Missing required property 'alerts_to_admins'") __props__['alerts_to_admins'] = alerts_to_admins if email is None: raise TypeError("Missing required property 'email'") __props__['email'] = email __props__['phone'] = phone super(Contact, __self__).__init__('azure:securitycenter/contact:Contact', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, policy_data: Optional[pulumi.Input[str]] = None, project: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, subnetwork: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ Three different resources help you manage your IAM policy for Compute Engine Subnetwork. Each of these resources serves a different use case: * `compute.SubnetworkIAMPolicy`: Authoritative. Sets the IAM policy for the subnetwork and replaces any existing policy already attached. * `compute.SubnetworkIAMBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the subnetwork are preserved. * `compute.SubnetworkIAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the subnetwork are preserved. > **Note:** `compute.SubnetworkIAMPolicy` **cannot** be used in conjunction with `compute.SubnetworkIAMBinding` and `compute.SubnetworkIAMMember` or they will fight over what your policy should be. > **Note:** `compute.SubnetworkIAMBinding` resources **can be** used in conjunction with `compute.SubnetworkIAMMember` resources **only if** they do not grant privilege to the same role. ## google\_compute\_subnetwork\_iam\_policy ```python import pulumi import pulumi_gcp as gcp admin = gcp.organizations.get_iam_policy(bindings=[gcp.organizations.GetIAMPolicyBindingArgs( role="roles/compute.networkUser", members=["user:[email protected]"], )]) policy = gcp.compute.SubnetworkIAMPolicy("policy", project=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["project"], region=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["region"], subnetwork=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["name"], policy_data=admin.policy_data) ``` With IAM Conditions: ```python import pulumi import pulumi_gcp as gcp admin = gcp.organizations.get_iam_policy(bindings=[gcp.organizations.GetIAMPolicyBindingArgs( role="roles/compute.networkUser", members=["user:[email protected]"], condition=gcp.organizations.GetIAMPolicyBindingConditionArgs( title="expires_after_2019_12_31", description="Expiring at midnight of 2019-12-31", expression="request.time < timestamp(\"2020-01-01T00:00:00Z\")", ), )]) policy = gcp.compute.SubnetworkIAMPolicy("policy", project=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["project"], region=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["region"], subnetwork=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["name"], policy_data=admin.policy_data) ``` ## google\_compute\_subnetwork\_iam\_binding ```python import pulumi import pulumi_gcp as gcp binding = gcp.compute.SubnetworkIAMBinding("binding", project=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["project"], region=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["region"], subnetwork=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["name"], role="roles/compute.networkUser", members=["user:[email protected]"]) ``` With IAM Conditions: ```python import pulumi import pulumi_gcp as gcp binding = gcp.compute.SubnetworkIAMBinding("binding", project=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["project"], region=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["region"], subnetwork=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["name"], role="roles/compute.networkUser", members=["user:[email protected]"], condition=gcp.compute.SubnetworkIAMBindingConditionArgs( title="expires_after_2019_12_31", description="Expiring at midnight of 2019-12-31", expression="request.time < timestamp(\"2020-01-01T00:00:00Z\")", )) ``` ## google\_compute\_subnetwork\_iam\_member ```python import pulumi import pulumi_gcp as gcp member = gcp.compute.SubnetworkIAMMember("member", project=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["project"], region=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["region"], subnetwork=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["name"], role="roles/compute.networkUser", member="user:[email protected]") ``` With IAM Conditions: ```python import pulumi import pulumi_gcp as gcp member = gcp.compute.SubnetworkIAMMember("member", project=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["project"], region=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["region"], subnetwork=google_compute_subnetwork["network-with-private-secondary-ip-ranges"]["name"], role="roles/compute.networkUser", member="user:[email protected]", condition=gcp.compute.SubnetworkIAMMemberConditionArgs( title="expires_after_2019_12_31", description="Expiring at midnight of 2019-12-31", expression="request.time < timestamp(\"2020-01-01T00:00:00Z\")", )) ``` ## Import For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/regions/{{region}}/subnetworks/{{name}} * {{project}}/{{region}}/{{name}} * {{region}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Compute Engine subnetwork IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g. ```sh $ pulumi import gcp:compute/subnetworkIAMPolicy:SubnetworkIAMPolicy editor "projects/{{project}}/regions/{{region}}/subnetworks/{{subnetwork}} roles/compute.networkUser user:[email protected]" ``` IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g. ```sh $ pulumi import gcp:compute/subnetworkIAMPolicy:SubnetworkIAMPolicy editor "projects/{{project}}/regions/{{region}}/subnetworks/{{subnetwork}} roles/compute.networkUser" ``` IAM policy imports use the identifier of the resource in question, e.g. ```sh $ pulumi import gcp:compute/subnetworkIAMPolicy:SubnetworkIAMPolicy editor projects/{{project}}/regions/{{region}}/subnetworks/{{subnetwork}} ``` -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] policy_data: The policy data generated by a `organizations.getIAMPolicy` data source. :param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. :param pulumi.Input[str] region: The GCP region for this subnetwork. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no region is specified, it is taken from the provider configuration. :param pulumi.Input[str] subnetwork: Used to find the parent resource to bind the IAM policy to """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() if policy_data is None: raise TypeError("Missing required property 'policy_data'") __props__['policy_data'] = policy_data __props__['project'] = project __props__['region'] = region if subnetwork is None: raise TypeError("Missing required property 'subnetwork'") __props__['subnetwork'] = subnetwork __props__['etag'] = None super(SubnetworkIAMPolicy, __self__).__init__( 'gcp:compute/subnetworkIAMPolicy:SubnetworkIAMPolicy', resource_name, __props__, opts)
def __init__(__self__, resource_name, opts=None, default_action=None, logging_configuration=None, metric_name=None, name=None, rules=None, __name__=None, __opts__=None): """ Provides a WAF Regional Web ACL Resource for use with Application Load Balancer. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[dict] default_action: The action that you want AWS WAF Regional to take when a request doesn't match the criteria in any of the rules that are associated with the web ACL. :param pulumi.Input[dict] logging_configuration: Configuration block to enable WAF logging. Detailed below. :param pulumi.Input[str] metric_name: The name or description for the Amazon CloudWatch metric of this web ACL. :param pulumi.Input[str] name: The name or description of the web ACL. :param pulumi.Input[list] rules: Set of configuration blocks containing rules for the web ACL. Detailed below. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if not resource_name: raise TypeError( 'Missing resource name argument (for URN creation)') if not isinstance(resource_name, str): raise TypeError('Expected resource name to be a string') if opts and not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') __props__ = dict() if default_action is None: raise TypeError("Missing required property 'default_action'") __props__['default_action'] = default_action __props__['logging_configuration'] = logging_configuration if metric_name is None: raise TypeError("Missing required property 'metric_name'") __props__['metric_name'] = metric_name __props__['name'] = name __props__['rules'] = rules __props__['arn'] = None if opts is None: opts = pulumi.ResourceOptions() if opts.version is None: opts.version = utilities.get_version() super(WebAcl, __self__).__init__('aws:wafregional/webAcl:WebAcl', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, etag: Optional[pulumi.Input[str]] = None, kind: Optional[pulumi.Input[Union[str, 'SettingKind']]] = None, operational_insights_resource_provider: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, settings_name: Optional[pulumi.Input[str]] = None, workspace_name: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, __opts__=None): """ The Setting. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] etag: Etag of the azure resource :param pulumi.Input[Union[str, 'SettingKind']] kind: The kind of the setting :param pulumi.Input[str] operational_insights_resource_provider: The namespace of workspaces resource provider- Microsoft.OperationalInsights. :param pulumi.Input[str] resource_group_name: The name of the resource group within the user's subscription. The name is case insensitive. :param pulumi.Input[str] settings_name: The setting name. Supports - EyesOn, EntityAnalytics, Ueba :param pulumi.Input[str] workspace_name: The name of the workspace. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() __props__['etag'] = etag if kind is None and not opts.urn: raise TypeError("Missing required property 'kind'") __props__['kind'] = kind if operational_insights_resource_provider is None and not opts.urn: raise TypeError("Missing required property 'operational_insights_resource_provider'") __props__['operational_insights_resource_provider'] = operational_insights_resource_provider if resource_group_name is None and not opts.urn: raise TypeError("Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name if settings_name is None and not opts.urn: raise TypeError("Missing required property 'settings_name'") __props__['settings_name'] = settings_name if workspace_name is None and not opts.urn: raise TypeError("Missing required property 'workspace_name'") __props__['workspace_name'] = workspace_name __props__['name'] = None __props__['type'] = None super(ProductSetting, __self__).__init__( 'azure-nextgen:securityinsights/v20190101preview:ProductSetting', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, etag: Optional[pulumi.Input[str]] = None, location: Optional[pulumi.Input[str]] = None, properties: Optional[pulumi.Input[pulumi.InputType['IotDpsPropertiesDescriptionArgs']]] = None, provisioning_service_name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, sku: Optional[pulumi.Input[pulumi.InputType['IotDpsSkuInfoArgs']]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, __props__=None, __name__=None, __opts__=None): """ The description of the provisioning service. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] etag: The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. :param pulumi.Input[str] location: The resource location. :param pulumi.Input[pulumi.InputType['IotDpsPropertiesDescriptionArgs']] properties: Service specific properties for a provisioning service :param pulumi.Input[str] provisioning_service_name: Name of provisioning service to create or update. :param pulumi.Input[str] resource_group_name: Resource group identifier. :param pulumi.Input[pulumi.InputType['IotDpsSkuInfoArgs']] sku: Sku info for a provisioning Service. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The resource tags. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() __props__['etag'] = etag if location is None: raise TypeError("Missing required property 'location'") __props__['location'] = location if properties is None: raise TypeError("Missing required property 'properties'") __props__['properties'] = properties if provisioning_service_name is None: raise TypeError("Missing required property 'provisioning_service_name'") __props__['provisioning_service_name'] = provisioning_service_name if resource_group_name is None: raise TypeError("Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name if sku is None: raise TypeError("Missing required property 'sku'") __props__['sku'] = sku __props__['tags'] = tags __props__['name'] = None __props__['type'] = None alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-nextgen:devices/latest:IotDpsResource"), pulumi.Alias(type_="azure-nextgen:devices/v20170821preview:IotDpsResource"), pulumi.Alias(type_="azure-nextgen:devices/v20171115:IotDpsResource"), pulumi.Alias(type_="azure-nextgen:devices/v20200101:IotDpsResource"), pulumi.Alias(type_="azure-nextgen:devices/v20200301:IotDpsResource"), pulumi.Alias(type_="azure-nextgen:devices/v20200901preview:IotDpsResource")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(IotDpsResource, __self__).__init__( 'azure-nextgen:devices/v20180122:IotDpsResource', resource_name, __props__, opts)
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, action: Optional[pulumi.Input[pulumi.InputType['ScheduledQueryRulesAlertActionArgs']]] = None, authorized_resource_ids: Optional[pulumi.Input[List[pulumi.Input[str]]]] = None, data_source_id: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, enabled: Optional[pulumi.Input[bool]] = None, frequency: Optional[pulumi.Input[float]] = None, location: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, query: Optional[pulumi.Input[str]] = None, query_type: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, severity: Optional[pulumi.Input[float]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, throttling: Optional[pulumi.Input[float]] = None, time_window: Optional[pulumi.Input[float]] = None, trigger: Optional[pulumi.Input[pulumi.InputType['ScheduledQueryRulesAlertTriggerArgs']]] = None, __props__=None, __name__=None, __opts__=None): """ Manages an AlertingAction Scheduled Query Rules resource within Azure Monitor. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[pulumi.InputType['ScheduledQueryRulesAlertActionArgs']] action: An `action` block as defined below. :param pulumi.Input[List[pulumi.Input[str]]] authorized_resource_ids: List of Resource IDs referred into query. :param pulumi.Input[str] data_source_id: The resource URI over which log search query is to be run. :param pulumi.Input[str] description: The description of the scheduled query rule. :param pulumi.Input[bool] enabled: Whether this scheduled query rule is enabled. Default is `true`. :param pulumi.Input[float] frequency: Frequency (in minutes) at which rule condition should be evaluated. Values must be between 5 and 1440 (inclusive). :param pulumi.Input[str] name: The name of the scheduled query rule. Changing this forces a new resource to be created. :param pulumi.Input[str] query: Log search query. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the scheduled query rule instance. :param pulumi.Input[float] severity: Severity of the alert. Possible values include: 0, 1, 2, 3, or 4. :param pulumi.Input[float] throttling: Time (in minutes) for which Alerts should be throttled or suppressed. Values must be between 0 and 10000 (inclusive). :param pulumi.Input[float] time_window: Time window for which data needs to be fetched for query (must be greater than or equal to `frequency`). Values must be between 5 and 2880 (inclusive). :param pulumi.Input[pulumi.InputType['ScheduledQueryRulesAlertTriggerArgs']] trigger: The condition that results in the alert rule being run. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() if action is None: raise TypeError("Missing required property 'action'") __props__['action'] = action __props__['authorized_resource_ids'] = authorized_resource_ids if data_source_id is None: raise TypeError("Missing required property 'data_source_id'") __props__['data_source_id'] = data_source_id __props__['description'] = description __props__['enabled'] = enabled if frequency is None: raise TypeError("Missing required property 'frequency'") __props__['frequency'] = frequency __props__['location'] = location __props__['name'] = name if query is None: raise TypeError("Missing required property 'query'") __props__['query'] = query __props__['query_type'] = query_type if resource_group_name is None: raise TypeError("Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name __props__['severity'] = severity __props__['tags'] = tags __props__['throttling'] = throttling if time_window is None: raise TypeError("Missing required property 'time_window'") __props__['time_window'] = time_window if trigger is None: raise TypeError("Missing required property 'trigger'") __props__['trigger'] = trigger super(ScheduledQueryRulesAlert, __self__).__init__( 'azure:monitoring/scheduledQueryRulesAlert:ScheduledQueryRulesAlert', resource_name, __props__, opts)
def __init__(__self__, resource_name, opts=None, api_key=None, application_id=None, enabled=None, secret_key=None, __props__=None, __name__=None, __opts__=None): """ Provides a Pinpoint Baidu Channel resource. > **Note:** All arguments including the Api Key and Secret Key will be stored in the raw state as plain-text. ## Example Usage ```python import pulumi import pulumi_aws as aws app = aws.pinpoint.App("app") channel = aws.pinpoint.BaiduChannel("channel", api_key="", application_id=app.application_id, secret_key="") ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] api_key: Platform credential API key from Baidu. :param pulumi.Input[str] application_id: The application ID. :param pulumi.Input[bool] enabled: Specifies whether to enable the channel. Defaults to `true`. :param pulumi.Input[str] secret_key: Platform credential Secret key from Baidu. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() if api_key is None: raise TypeError("Missing required property 'api_key'") __props__['api_key'] = api_key if application_id is None: raise TypeError("Missing required property 'application_id'") __props__['application_id'] = application_id __props__['enabled'] = enabled if secret_key is None: raise TypeError("Missing required property 'secret_key'") __props__['secret_key'] = secret_key super(BaiduChannel, __self__).__init__( 'aws:pinpoint/baiduChannel:BaiduChannel', resource_name, __props__, opts)
def __init__(__self__, resource_name, opts=None, encryption_configuration=None, name=None, __props__=None, __name__=None, __opts__=None): """ Manages a Glue Security Configuration. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[dict] encryption_configuration: Configuration block containing encryption configuration. Detailed below. :param pulumi.Input[str] name: Name of the security configuration. The **encryption_configuration** object supports the following: * `cloudwatchEncryption` (`pulumi.Input[dict]`) * `cloudwatchEncryptionMode` (`pulumi.Input[str]`) - Encryption mode to use for CloudWatch data. Valid values: `DISABLED`, `SSE-KMS`. Default value: `DISABLED`. * `kms_key_arn` (`pulumi.Input[str]`) - Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. * `jobBookmarksEncryption` (`pulumi.Input[dict]`) * `jobBookmarksEncryptionMode` (`pulumi.Input[str]`) - Encryption mode to use for job bookmarks data. Valid values: `CSE-KMS`, `DISABLED`. Default value: `DISABLED`. * `kms_key_arn` (`pulumi.Input[str]`) - Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. * `s3Encryption` (`pulumi.Input[dict]`) - A `s3_encryption ` block as described below, which contains encryption configuration for S3 data. * `kms_key_arn` (`pulumi.Input[str]`) - Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data. * `s3EncryptionMode` (`pulumi.Input[str]`) - Encryption mode to use for S3 data. Valid values: `DISABLED`, `SSE-KMS`, `SSE-S3`. Default value: `DISABLED`. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() if encryption_configuration is None: raise TypeError( "Missing required property 'encryption_configuration'") __props__['encryption_configuration'] = encryption_configuration __props__['name'] = name super(SecurityConfiguration, __self__).__init__( 'aws:glue/securityConfiguration:SecurityConfiguration', resource_name, __props__, opts)
def __init__( __self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, application_name: Optional[pulumi.Input[str]] = None, cluster_name: Optional[pulumi.Input[str]] = None, correlation_scheme: Optional[pulumi.Input[Sequence[pulumi.Input[ pulumi. InputType['ServiceCorrelationDescriptionArgs']]]]] = None, default_move_cost: Optional[pulumi.Input[Union[ str, 'MoveCost']]] = None, location: Optional[pulumi.Input[str]] = None, partition_description: Optional[pulumi.Input[Union[ pulumi.InputType['NamedPartitionSchemeDescriptionArgs'], pulumi.InputType['SingletonPartitionSchemeDescriptionArgs'], pulumi.InputType[ 'UniformInt64RangePartitionSchemeDescriptionArgs']]]] = None, placement_constraints: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, service_dns_name: Optional[pulumi.Input[str]] = None, service_kind: Optional[pulumi.Input[Union[str, 'ServiceKind']]] = None, service_load_metrics: Optional[pulumi.Input[Sequence[pulumi.Input[ pulumi. InputType['ServiceLoadMetricDescriptionArgs']]]]] = None, service_name: Optional[pulumi.Input[str]] = None, service_package_activation_mode: Optional[pulumi.Input[Union[ str, 'ArmServicePackageActivationMode']]] = None, service_placement_policies: Optional[pulumi.Input[Sequence[ pulumi.Input[pulumi.InputType[ 'ServicePlacementPolicyDescriptionArgs']]]]] = None, service_type_name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, __props__=None, __name__=None, __opts__=None): """ The service resource. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] application_name: The name of the application resource. :param pulumi.Input[str] cluster_name: The name of the cluster resource. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceCorrelationDescriptionArgs']]]] correlation_scheme: A list that describes the correlation of the service with other services. :param pulumi.Input[Union[str, 'MoveCost']] default_move_cost: Specifies the move cost for the service. :param pulumi.Input[str] location: It will be deprecated in New API, resource location depends on the parent resource. :param pulumi.Input[Union[pulumi.InputType['NamedPartitionSchemeDescriptionArgs'], pulumi.InputType['SingletonPartitionSchemeDescriptionArgs'], pulumi.InputType['UniformInt64RangePartitionSchemeDescriptionArgs']]] partition_description: Describes how the service is partitioned. :param pulumi.Input[str] placement_constraints: The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". :param pulumi.Input[str] resource_group_name: The name of the resource group. :param pulumi.Input[str] service_dns_name: Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name. :param pulumi.Input[Union[str, 'ServiceKind']] service_kind: The kind of service (Stateless or Stateful). :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceLoadMetricDescriptionArgs']]]] service_load_metrics: The service load metrics is given as an array of ServiceLoadMetricDescription objects. :param pulumi.Input[str] service_name: The name of the service resource in the format of {applicationName}~{serviceName}. :param pulumi.Input[Union[str, 'ArmServicePackageActivationMode']] service_package_activation_mode: The activation Mode of the service package :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServicePlacementPolicyDescriptionArgs']]]] service_placement_policies: A list that describes the correlation of the service with other services. :param pulumi.Input[str] service_type_name: The name of the service type :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Azure resource tags. """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) resource_name = __name__ if __opts__ is not None: warnings.warn( "explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) opts = __opts__ if opts is None: opts = pulumi.ResourceOptions() if not isinstance(opts, pulumi.ResourceOptions): raise TypeError( 'Expected resource options to be a ResourceOptions instance') if opts.version is None: opts.version = _utilities.get_version() if opts.id is None: if __props__ is not None: raise TypeError( '__props__ is only valid when passed in combination with a valid opts.id to get an existing resource' ) __props__ = dict() if application_name is None and not opts.urn: raise TypeError("Missing required property 'application_name'") __props__['application_name'] = application_name if cluster_name is None and not opts.urn: raise TypeError("Missing required property 'cluster_name'") __props__['cluster_name'] = cluster_name __props__['correlation_scheme'] = correlation_scheme __props__['default_move_cost'] = default_move_cost __props__['location'] = location __props__['partition_description'] = partition_description __props__['placement_constraints'] = placement_constraints if resource_group_name is None and not opts.urn: raise TypeError( "Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name __props__['service_dns_name'] = service_dns_name if service_kind is None and not opts.urn: raise TypeError("Missing required property 'service_kind'") __props__['service_kind'] = service_kind __props__['service_load_metrics'] = service_load_metrics if service_name is None and not opts.urn: raise TypeError("Missing required property 'service_name'") __props__['service_name'] = service_name __props__[ 'service_package_activation_mode'] = service_package_activation_mode __props__[ 'service_placement_policies'] = service_placement_policies __props__['service_type_name'] = service_type_name __props__['tags'] = tags __props__['etag'] = None __props__['name'] = None __props__['provisioning_state'] = None __props__['type'] = None alias_opts = pulumi.ResourceOptions(aliases=[ pulumi.Alias(type_="azure-nextgen:servicefabric/latest:Service"), pulumi.Alias( type_="azure-nextgen:servicefabric/v20170701preview:Service"), pulumi.Alias( type_="azure-nextgen:servicefabric/v20190301:Service"), pulumi.Alias( type_="azure-nextgen:servicefabric/v20190301preview:Service"), pulumi.Alias( type_="azure-nextgen:servicefabric/v20190601preview:Service"), pulumi.Alias( type_="azure-nextgen:servicefabric/v20191101preview:Service") ]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Service, __self__).__init__( 'azure-nextgen:servicefabric/v20200301:Service', resource_name, __props__, opts)