1. Packages
  2. Ibm Provider
  3. API Docs
  4. SccProfileAttachment
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.SccProfileAttachment

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, and delete profile attachments with this resource.

    NOTE: Security Compliance Center is a regional service. Please specify the IBM Cloud Provider attribute region to target another region. Else, exporting the environmental variable IBMCLOUD_SCC_API_ENDPOINT will also override which region is being targeted for all ibm providers(ex. export IBMCLOUD_SCC_API_ENDPOINT=https://eu-es.compliance.cloud.ibm.com).

    Example Usage

    Making a profile attachment using an IBM ibm.SccScope:

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      # resource to create a scope targeting an account
      sccPersonalAccountScope:
        type: ibm:SccScope
        properties:
          description: An scope targeting an account, made using Terraform
          environment: ibm-cloud
          properties:
            scope_type: account
            scope_id: 7379262615a74cb3b9f346408a3e1694
          instanceId: ${sccInstanceId}
      # resource to create a profile attachment to a predefined profile
      cis-profile-attachment-instance:
        type: ibm:SccProfileAttachment
        properties:
          instanceId: ${sccInstanceId}
          description: Sample Profile attachment using Terraform
          profileId: ${ibmCloudSampleProfileId}
          schedule: every_7_days
          status: disabled
          # scope created by the resource ibm_scc_scope
          scopes:
            - id: ${sccPersonalAccountScope.scopeId}
          # dynamically use the default parameters of a profile if there are any
          dynamic:
            - forEach: ${sampleProfileId.defaultParameters}
              content:
                - parameterName: ${attachment_parameters.value.parameter_name}
                  parameterDisplayName: ${attachment_parameters.value.parameter_display_name}
                  parameterType: ${attachment_parameters.value.parameter_type}
                  parameterValue: ${attachment_parameters.value.parameter_default_value}
                  assessmentType: ${attachment_parameters.value.assessment_type}
                  assessmentId: ${attachment_parameters.value.assessment_id}
          notifications:
            enabled: false
            controls:
              failedControlIds: []
              thresholdLimit: 10
    variables:
      sccInstanceId: f6939361-4f72-47a3-ae5e-0ee77a90ee31
      ibmCloudSampleProfileId: 623ee808-2fcd-4700-8149-cc5500512ad7
      sampleProfileId: ## Resources
        fn::invoke:
          function: ibm:getSccProfile
          arguments:
            instanceId: ${sccInstanceId}
            profileId: ${ibmCloudSampleProfileId}
    

    Making a profile attachment using an IBM account_id:

    NOTE: This is considered legacy support and will be deprecated soon.

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const sccProfileAttachmentInstance = new ibm.SccProfileAttachment("sccProfileAttachmentInstance", {
        profileId: "a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d",
        instanceId: "34324315-2edc-23dc-2389-34982389834d",
        description: "scc_profile_attachment_description",
        scopes: [{
            environment: "ibm-cloud",
            properties: [
                {
                    name: "scope_id",
                    value: resource.ibm_scc_control_library.scc_control_library_instance.account_id,
                },
                {
                    name: "scope_type",
                    value: "account",
                },
            ],
        }],
        schedule: "every_30_days",
        status: "enabled",
        notifications: {
            enabled: false,
            controls: {
                failedControlIds: [],
                thresholdLimit: 14,
            },
        },
        attachmentParameters: [{
            parameterValue: "22",
            assessmentId: "rule-this-is-a-fake-ruleid",
            parameterDisplayName: "Network ACL rule for allowed IPs to SSH port",
            parameterName: "ssh_port",
            parameterType: "numeric",
        }],
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    scc_profile_attachment_instance = ibm.SccProfileAttachment("sccProfileAttachmentInstance",
        profile_id="a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d",
        instance_id="34324315-2edc-23dc-2389-34982389834d",
        description="scc_profile_attachment_description",
        scopes=[{
            "environment": "ibm-cloud",
            "properties": [
                {
                    "name": "scope_id",
                    "value": resource["ibm_scc_control_library"]["scc_control_library_instance"]["account_id"],
                },
                {
                    "name": "scope_type",
                    "value": "account",
                },
            ],
        }],
        schedule="every_30_days",
        status="enabled",
        notifications={
            "enabled": False,
            "controls": {
                "failed_control_ids": [],
                "threshold_limit": 14,
            },
        },
        attachment_parameters=[{
            "parameter_value": "22",
            "assessment_id": "rule-this-is-a-fake-ruleid",
            "parameter_display_name": "Network ACL rule for allowed IPs to SSH port",
            "parameter_name": "ssh_port",
            "parameter_type": "numeric",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.NewSccProfileAttachment(ctx, "sccProfileAttachmentInstance", &ibm.SccProfileAttachmentArgs{
    			ProfileId:   pulumi.String("a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d"),
    			InstanceId:  pulumi.String("34324315-2edc-23dc-2389-34982389834d"),
    			Description: pulumi.String("scc_profile_attachment_description"),
    			Scopes: ibm.SccProfileAttachmentScopeArray{
    				&ibm.SccProfileAttachmentScopeArgs{
    					Environment: pulumi.String("ibm-cloud"),
    					Properties: ibm.SccProfileAttachmentScopePropertyArray{
    						&ibm.SccProfileAttachmentScopePropertyArgs{
    							Name:  pulumi.String("scope_id"),
    							Value: pulumi.Any(resource.Ibm_scc_control_library.Scc_control_library_instance.Account_id),
    						},
    						&ibm.SccProfileAttachmentScopePropertyArgs{
    							Name:  pulumi.String("scope_type"),
    							Value: pulumi.String("account"),
    						},
    					},
    				},
    			},
    			Schedule: pulumi.String("every_30_days"),
    			Status:   pulumi.String("enabled"),
    			Notifications: &ibm.SccProfileAttachmentNotificationsArgs{
    				Enabled: pulumi.Bool(false),
    				Controls: &ibm.SccProfileAttachmentNotificationsControlsArgs{
    					FailedControlIds: pulumi.StringArray{},
    					ThresholdLimit:   pulumi.Float64(14),
    				},
    			},
    			AttachmentParameters: ibm.SccProfileAttachmentAttachmentParameterArray{
    				&ibm.SccProfileAttachmentAttachmentParameterArgs{
    					ParameterValue:       pulumi.String("22"),
    					AssessmentId:         pulumi.String("rule-this-is-a-fake-ruleid"),
    					ParameterDisplayName: pulumi.String("Network ACL rule for allowed IPs to SSH port"),
    					ParameterName:        pulumi.String("ssh_port"),
    					ParameterType:        pulumi.String("numeric"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var sccProfileAttachmentInstance = new Ibm.SccProfileAttachment("sccProfileAttachmentInstance", new()
        {
            ProfileId = "a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d",
            InstanceId = "34324315-2edc-23dc-2389-34982389834d",
            Description = "scc_profile_attachment_description",
            Scopes = new[]
            {
                new Ibm.Inputs.SccProfileAttachmentScopeArgs
                {
                    Environment = "ibm-cloud",
                    Properties = new[]
                    {
                        new Ibm.Inputs.SccProfileAttachmentScopePropertyArgs
                        {
                            Name = "scope_id",
                            Value = resource.Ibm_scc_control_library.Scc_control_library_instance.Account_id,
                        },
                        new Ibm.Inputs.SccProfileAttachmentScopePropertyArgs
                        {
                            Name = "scope_type",
                            Value = "account",
                        },
                    },
                },
            },
            Schedule = "every_30_days",
            Status = "enabled",
            Notifications = new Ibm.Inputs.SccProfileAttachmentNotificationsArgs
            {
                Enabled = false,
                Controls = new Ibm.Inputs.SccProfileAttachmentNotificationsControlsArgs
                {
                    FailedControlIds = new() { },
                    ThresholdLimit = 14,
                },
            },
            AttachmentParameters = new[]
            {
                new Ibm.Inputs.SccProfileAttachmentAttachmentParameterArgs
                {
                    ParameterValue = "22",
                    AssessmentId = "rule-this-is-a-fake-ruleid",
                    ParameterDisplayName = "Network ACL rule for allowed IPs to SSH port",
                    ParameterName = "ssh_port",
                    ParameterType = "numeric",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.SccProfileAttachment;
    import com.pulumi.ibm.SccProfileAttachmentArgs;
    import com.pulumi.ibm.inputs.SccProfileAttachmentScopeArgs;
    import com.pulumi.ibm.inputs.SccProfileAttachmentNotificationsArgs;
    import com.pulumi.ibm.inputs.SccProfileAttachmentNotificationsControlsArgs;
    import com.pulumi.ibm.inputs.SccProfileAttachmentAttachmentParameterArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var sccProfileAttachmentInstance = new SccProfileAttachment("sccProfileAttachmentInstance", SccProfileAttachmentArgs.builder()
                .profileId("a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d")
                .instanceId("34324315-2edc-23dc-2389-34982389834d")
                .description("scc_profile_attachment_description")
                .scopes(SccProfileAttachmentScopeArgs.builder()
                    .environment("ibm-cloud")
                    .properties(                
                        SccProfileAttachmentScopePropertyArgs.builder()
                            .name("scope_id")
                            .value(resource.ibm_scc_control_library().scc_control_library_instance().account_id())
                            .build(),
                        SccProfileAttachmentScopePropertyArgs.builder()
                            .name("scope_type")
                            .value("account")
                            .build())
                    .build())
                .schedule("every_30_days")
                .status("enabled")
                .notifications(SccProfileAttachmentNotificationsArgs.builder()
                    .enabled(false)
                    .controls(SccProfileAttachmentNotificationsControlsArgs.builder()
                        .failedControlIds()
                        .thresholdLimit(14)
                        .build())
                    .build())
                .attachmentParameters(SccProfileAttachmentAttachmentParameterArgs.builder()
                    .parameterValue("22")
                    .assessmentId("rule-this-is-a-fake-ruleid")
                    .parameterDisplayName("Network ACL rule for allowed IPs to SSH port")
                    .parameterName("ssh_port")
                    .parameterType("numeric")
                    .build())
                .build());
    
        }
    }
    
    resources:
      sccProfileAttachmentInstance:
        type: ibm:SccProfileAttachment
        properties:
          profileId: a0bd1ee2-1ed3-407e-a2f4-ce7a1a38f54d
          instanceId: 34324315-2edc-23dc-2389-34982389834d
          description: scc_profile_attachment_description
          scopes:
            - environment: ibm-cloud
              properties:
                - name: scope_id
                  value: ${resource.ibm_scc_control_library.scc_control_library_instance.account_id}
                - name: scope_type
                  value: account
          schedule: every_30_days
          status: enabled
          notifications:
            enabled: false
            controls:
              failedControlIds: []
              thresholdLimit: 14
          attachmentParameters:
            - parameterValue: '22'
              assessmentId: rule-this-is-a-fake-ruleid
              parameterDisplayName: Network ACL rule for allowed IPs to SSH port
              parameterName: ssh_port
              parameterType: numeric
    

    Create SccProfileAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SccProfileAttachment(name: string, args: SccProfileAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def SccProfileAttachment(resource_name: str,
                             args: SccProfileAttachmentArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def SccProfileAttachment(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             instance_id: Optional[str] = None,
                             profile_id: Optional[str] = None,
                             schedule: Optional[str] = None,
                             scopes: Optional[Sequence[SccProfileAttachmentScopeArgs]] = None,
                             status: Optional[str] = None,
                             attachment_parameters: Optional[Sequence[SccProfileAttachmentAttachmentParameterArgs]] = None,
                             description: Optional[str] = None,
                             name: Optional[str] = None,
                             notifications: Optional[SccProfileAttachmentNotificationsArgs] = None,
                             scc_profile_attachment_id: Optional[str] = None)
    func NewSccProfileAttachment(ctx *Context, name string, args SccProfileAttachmentArgs, opts ...ResourceOption) (*SccProfileAttachment, error)
    public SccProfileAttachment(string name, SccProfileAttachmentArgs args, CustomResourceOptions? opts = null)
    public SccProfileAttachment(String name, SccProfileAttachmentArgs args)
    public SccProfileAttachment(String name, SccProfileAttachmentArgs args, CustomResourceOptions options)
    
    type: ibm:SccProfileAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SccProfileAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SccProfileAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SccProfileAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SccProfileAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SccProfileAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var sccProfileAttachmentResource = new Ibm.SccProfileAttachment("sccProfileAttachmentResource", new()
    {
        InstanceId = "string",
        ProfileId = "string",
        Schedule = "string",
        Scopes = new[]
        {
            new Ibm.Inputs.SccProfileAttachmentScopeArgs
            {
                Environment = "string",
                Id = "string",
                Properties = new[]
                {
                    new Ibm.Inputs.SccProfileAttachmentScopePropertyArgs
                    {
                        Name = "string",
                        Value = "string",
                    },
                },
            },
        },
        Status = "string",
        AttachmentParameters = new[]
        {
            new Ibm.Inputs.SccProfileAttachmentAttachmentParameterArgs
            {
                AssessmentId = "string",
                ParameterDisplayName = "string",
                ParameterName = "string",
                ParameterType = "string",
                ParameterValue = "string",
                AssessmentType = "string",
            },
        },
        Description = "string",
        Name = "string",
        Notifications = new Ibm.Inputs.SccProfileAttachmentNotificationsArgs
        {
            Controls = new Ibm.Inputs.SccProfileAttachmentNotificationsControlsArgs
            {
                FailedControlIds = new[]
                {
                    "string",
                },
                ThresholdLimit = 0,
            },
            Enabled = false,
        },
        SccProfileAttachmentId = "string",
    });
    
    example, err := ibm.NewSccProfileAttachment(ctx, "sccProfileAttachmentResource", &ibm.SccProfileAttachmentArgs{
    	InstanceId: pulumi.String("string"),
    	ProfileId:  pulumi.String("string"),
    	Schedule:   pulumi.String("string"),
    	Scopes: ibm.SccProfileAttachmentScopeArray{
    		&ibm.SccProfileAttachmentScopeArgs{
    			Environment: pulumi.String("string"),
    			Id:          pulumi.String("string"),
    			Properties: ibm.SccProfileAttachmentScopePropertyArray{
    				&ibm.SccProfileAttachmentScopePropertyArgs{
    					Name:  pulumi.String("string"),
    					Value: pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Status: pulumi.String("string"),
    	AttachmentParameters: ibm.SccProfileAttachmentAttachmentParameterArray{
    		&ibm.SccProfileAttachmentAttachmentParameterArgs{
    			AssessmentId:         pulumi.String("string"),
    			ParameterDisplayName: pulumi.String("string"),
    			ParameterName:        pulumi.String("string"),
    			ParameterType:        pulumi.String("string"),
    			ParameterValue:       pulumi.String("string"),
    			AssessmentType:       pulumi.String("string"),
    		},
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Notifications: &ibm.SccProfileAttachmentNotificationsArgs{
    		Controls: &ibm.SccProfileAttachmentNotificationsControlsArgs{
    			FailedControlIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			ThresholdLimit: pulumi.Float64(0),
    		},
    		Enabled: pulumi.Bool(false),
    	},
    	SccProfileAttachmentId: pulumi.String("string"),
    })
    
    var sccProfileAttachmentResource = new SccProfileAttachment("sccProfileAttachmentResource", SccProfileAttachmentArgs.builder()
        .instanceId("string")
        .profileId("string")
        .schedule("string")
        .scopes(SccProfileAttachmentScopeArgs.builder()
            .environment("string")
            .id("string")
            .properties(SccProfileAttachmentScopePropertyArgs.builder()
                .name("string")
                .value("string")
                .build())
            .build())
        .status("string")
        .attachmentParameters(SccProfileAttachmentAttachmentParameterArgs.builder()
            .assessmentId("string")
            .parameterDisplayName("string")
            .parameterName("string")
            .parameterType("string")
            .parameterValue("string")
            .assessmentType("string")
            .build())
        .description("string")
        .name("string")
        .notifications(SccProfileAttachmentNotificationsArgs.builder()
            .controls(SccProfileAttachmentNotificationsControlsArgs.builder()
                .failedControlIds("string")
                .thresholdLimit(0)
                .build())
            .enabled(false)
            .build())
        .sccProfileAttachmentId("string")
        .build());
    
    scc_profile_attachment_resource = ibm.SccProfileAttachment("sccProfileAttachmentResource",
        instance_id="string",
        profile_id="string",
        schedule="string",
        scopes=[{
            "environment": "string",
            "id": "string",
            "properties": [{
                "name": "string",
                "value": "string",
            }],
        }],
        status="string",
        attachment_parameters=[{
            "assessment_id": "string",
            "parameter_display_name": "string",
            "parameter_name": "string",
            "parameter_type": "string",
            "parameter_value": "string",
            "assessment_type": "string",
        }],
        description="string",
        name="string",
        notifications={
            "controls": {
                "failed_control_ids": ["string"],
                "threshold_limit": 0,
            },
            "enabled": False,
        },
        scc_profile_attachment_id="string")
    
    const sccProfileAttachmentResource = new ibm.SccProfileAttachment("sccProfileAttachmentResource", {
        instanceId: "string",
        profileId: "string",
        schedule: "string",
        scopes: [{
            environment: "string",
            id: "string",
            properties: [{
                name: "string",
                value: "string",
            }],
        }],
        status: "string",
        attachmentParameters: [{
            assessmentId: "string",
            parameterDisplayName: "string",
            parameterName: "string",
            parameterType: "string",
            parameterValue: "string",
            assessmentType: "string",
        }],
        description: "string",
        name: "string",
        notifications: {
            controls: {
                failedControlIds: ["string"],
                thresholdLimit: 0,
            },
            enabled: false,
        },
        sccProfileAttachmentId: "string",
    });
    
    type: ibm:SccProfileAttachment
    properties:
        attachmentParameters:
            - assessmentId: string
              assessmentType: string
              parameterDisplayName: string
              parameterName: string
              parameterType: string
              parameterValue: string
        description: string
        instanceId: string
        name: string
        notifications:
            controls:
                failedControlIds:
                    - string
                thresholdLimit: 0
            enabled: false
        profileId: string
        sccProfileAttachmentId: string
        schedule: string
        scopes:
            - environment: string
              id: string
              properties:
                - name: string
                  value: string
        status: string
    

    SccProfileAttachment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SccProfileAttachment resource accepts the following input properties:

    InstanceId string
    The ID of the SCC instance in a particular region.
    ProfileId string
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    Schedule string
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    Scopes List<SccProfileAttachmentScope>

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    Status string
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    AttachmentParameters List<SccProfileAttachmentAttachmentParameter>

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    Description string
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    Name string
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Notifications SccProfileAttachmentNotifications

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    SccProfileAttachmentId string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    InstanceId string
    The ID of the SCC instance in a particular region.
    ProfileId string
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    Schedule string
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    Scopes []SccProfileAttachmentScopeArgs

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    Status string
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    AttachmentParameters []SccProfileAttachmentAttachmentParameterArgs

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    Description string
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    Name string
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Notifications SccProfileAttachmentNotificationsArgs

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    SccProfileAttachmentId string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instanceId String
    The ID of the SCC instance in a particular region.
    profileId String
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    schedule String
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    scopes List<SccProfileAttachmentScope>

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    status String
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    attachmentParameters List<SccProfileAttachmentAttachmentParameter>

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    description String
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    name String
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    notifications SccProfileAttachmentNotifications

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    sccProfileAttachmentId String
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instanceId string
    The ID of the SCC instance in a particular region.
    profileId string
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    schedule string
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    scopes SccProfileAttachmentScope[]

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    status string
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    attachmentParameters SccProfileAttachmentAttachmentParameter[]

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    description string
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    name string
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    notifications SccProfileAttachmentNotifications

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    sccProfileAttachmentId string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instance_id str
    The ID of the SCC instance in a particular region.
    profile_id str
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    schedule str
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    scopes Sequence[SccProfileAttachmentScopeArgs]

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    status str
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    attachment_parameters Sequence[SccProfileAttachmentAttachmentParameterArgs]

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    description str
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    name str
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    notifications SccProfileAttachmentNotificationsArgs

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    scc_profile_attachment_id str
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    instanceId String
    The ID of the SCC instance in a particular region.
    profileId String
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    schedule String
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    scopes List<Property Map>

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    status String
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    attachmentParameters List<Property Map>

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    description String
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    name String
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    notifications Property Map

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    sccProfileAttachmentId String
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SccProfileAttachment resource produces the following output properties:

    AccountId string
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    AttachmentId string
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    CreatedBy string
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    CreatedOn string
    (String) The date when the attachment was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastScans List<SccProfileAttachmentLastScan>
    (List) The details of the last scan of an attachment.
    NextScanTime string
    (String) The start time of the next scan.
    ProfileAttachmentId string
    (String) The ID that is associated with the created profile_attachment
    UpdatedBy string
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    UpdatedOn string
    (String) The date when the attachment was updated.
    AccountId string
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    AttachmentId string
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    CreatedBy string
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    CreatedOn string
    (String) The date when the attachment was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastScans []SccProfileAttachmentLastScan
    (List) The details of the last scan of an attachment.
    NextScanTime string
    (String) The start time of the next scan.
    ProfileAttachmentId string
    (String) The ID that is associated with the created profile_attachment
    UpdatedBy string
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    UpdatedOn string
    (String) The date when the attachment was updated.
    accountId String
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachmentId String
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    createdBy String
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    createdOn String
    (String) The date when the attachment was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastScans List<SccProfileAttachmentLastScan>
    (List) The details of the last scan of an attachment.
    nextScanTime String
    (String) The start time of the next scan.
    profileAttachmentId String
    (String) The ID that is associated with the created profile_attachment
    updatedBy String
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updatedOn String
    (String) The date when the attachment was updated.
    accountId string
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachmentId string
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    createdBy string
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    createdOn string
    (String) The date when the attachment was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lastScans SccProfileAttachmentLastScan[]
    (List) The details of the last scan of an attachment.
    nextScanTime string
    (String) The start time of the next scan.
    profileAttachmentId string
    (String) The ID that is associated with the created profile_attachment
    updatedBy string
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updatedOn string
    (String) The date when the attachment was updated.
    account_id str
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachment_id str
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    created_by str
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    created_on str
    (String) The date when the attachment was created.
    id str
    The provider-assigned unique ID for this managed resource.
    last_scans Sequence[SccProfileAttachmentLastScan]
    (List) The details of the last scan of an attachment.
    next_scan_time str
    (String) The start time of the next scan.
    profile_attachment_id str
    (String) The ID that is associated with the created profile_attachment
    updated_by str
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updated_on str
    (String) The date when the attachment was updated.
    accountId String
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachmentId String
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    createdBy String
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    createdOn String
    (String) The date when the attachment was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastScans List<Property Map>
    (List) The details of the last scan of an attachment.
    nextScanTime String
    (String) The start time of the next scan.
    profileAttachmentId String
    (String) The ID that is associated with the created profile_attachment
    updatedBy String
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updatedOn String
    (String) The date when the attachment was updated.

    Look up Existing SccProfileAttachment Resource

    Get an existing SccProfileAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SccProfileAttachmentState, opts?: CustomResourceOptions): SccProfileAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            attachment_id: Optional[str] = None,
            attachment_parameters: Optional[Sequence[SccProfileAttachmentAttachmentParameterArgs]] = None,
            created_by: Optional[str] = None,
            created_on: Optional[str] = None,
            description: Optional[str] = None,
            instance_id: Optional[str] = None,
            last_scans: Optional[Sequence[SccProfileAttachmentLastScanArgs]] = None,
            name: Optional[str] = None,
            next_scan_time: Optional[str] = None,
            notifications: Optional[SccProfileAttachmentNotificationsArgs] = None,
            profile_attachment_id: Optional[str] = None,
            profile_id: Optional[str] = None,
            scc_profile_attachment_id: Optional[str] = None,
            schedule: Optional[str] = None,
            scopes: Optional[Sequence[SccProfileAttachmentScopeArgs]] = None,
            status: Optional[str] = None,
            updated_by: Optional[str] = None,
            updated_on: Optional[str] = None) -> SccProfileAttachment
    func GetSccProfileAttachment(ctx *Context, name string, id IDInput, state *SccProfileAttachmentState, opts ...ResourceOption) (*SccProfileAttachment, error)
    public static SccProfileAttachment Get(string name, Input<string> id, SccProfileAttachmentState? state, CustomResourceOptions? opts = null)
    public static SccProfileAttachment get(String name, Output<String> id, SccProfileAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: ibm:SccProfileAttachment    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    AttachmentId string
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    AttachmentParameters List<SccProfileAttachmentAttachmentParameter>

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    CreatedBy string
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    CreatedOn string
    (String) The date when the attachment was created.
    Description string
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    InstanceId string
    The ID of the SCC instance in a particular region.
    LastScans List<SccProfileAttachmentLastScan>
    (List) The details of the last scan of an attachment.
    Name string
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    NextScanTime string
    (String) The start time of the next scan.
    Notifications SccProfileAttachmentNotifications

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    ProfileAttachmentId string
    (String) The ID that is associated with the created profile_attachment
    ProfileId string
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    SccProfileAttachmentId string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Schedule string
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    Scopes List<SccProfileAttachmentScope>

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    Status string
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    UpdatedBy string
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    UpdatedOn string
    (String) The date when the attachment was updated.
    AccountId string
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    AttachmentId string
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    AttachmentParameters []SccProfileAttachmentAttachmentParameterArgs

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    CreatedBy string
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    CreatedOn string
    (String) The date when the attachment was created.
    Description string
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    InstanceId string
    The ID of the SCC instance in a particular region.
    LastScans []SccProfileAttachmentLastScanArgs
    (List) The details of the last scan of an attachment.
    Name string
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    NextScanTime string
    (String) The start time of the next scan.
    Notifications SccProfileAttachmentNotificationsArgs

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    ProfileAttachmentId string
    (String) The ID that is associated with the created profile_attachment
    ProfileId string
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    SccProfileAttachmentId string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Schedule string
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    Scopes []SccProfileAttachmentScopeArgs

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    Status string
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    UpdatedBy string
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    UpdatedOn string
    (String) The date when the attachment was updated.
    accountId String
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachmentId String
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachmentParameters List<SccProfileAttachmentAttachmentParameter>

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    createdBy String
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    createdOn String
    (String) The date when the attachment was created.
    description String
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    instanceId String
    The ID of the SCC instance in a particular region.
    lastScans List<SccProfileAttachmentLastScan>
    (List) The details of the last scan of an attachment.
    name String
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    nextScanTime String
    (String) The start time of the next scan.
    notifications SccProfileAttachmentNotifications

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    profileAttachmentId String
    (String) The ID that is associated with the created profile_attachment
    profileId String
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    sccProfileAttachmentId String
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    schedule String
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    scopes List<SccProfileAttachmentScope>

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    status String
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    updatedBy String
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updatedOn String
    (String) The date when the attachment was updated.
    accountId string
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachmentId string
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachmentParameters SccProfileAttachmentAttachmentParameter[]

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    createdBy string
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    createdOn string
    (String) The date when the attachment was created.
    description string
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    instanceId string
    The ID of the SCC instance in a particular region.
    lastScans SccProfileAttachmentLastScan[]
    (List) The details of the last scan of an attachment.
    name string
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    nextScanTime string
    (String) The start time of the next scan.
    notifications SccProfileAttachmentNotifications

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    profileAttachmentId string
    (String) The ID that is associated with the created profile_attachment
    profileId string
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    sccProfileAttachmentId string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    schedule string
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    scopes SccProfileAttachmentScope[]

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    status string
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    updatedBy string
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updatedOn string
    (String) The date when the attachment was updated.
    account_id str
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachment_id str
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachment_parameters Sequence[SccProfileAttachmentAttachmentParameterArgs]

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    created_by str
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    created_on str
    (String) The date when the attachment was created.
    description str
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    instance_id str
    The ID of the SCC instance in a particular region.
    last_scans Sequence[SccProfileAttachmentLastScanArgs]
    (List) The details of the last scan of an attachment.
    name str
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    next_scan_time str
    (String) The start time of the next scan.
    notifications SccProfileAttachmentNotificationsArgs

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    profile_attachment_id str
    (String) The ID that is associated with the created profile_attachment
    profile_id str
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    scc_profile_attachment_id str
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    schedule str
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    scopes Sequence[SccProfileAttachmentScopeArgs]

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    status str
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    updated_by str
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updated_on str
    (String) The date when the attachment was updated.
    accountId String
    (String) The account ID that is associated to the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachmentId String
    (String) The ID of the attachment.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    attachmentParameters List<Property Map>

    The attachment parameters required from the profile that the attachment is targeting. All parameters listed from the profile needs to be set. NOTE: All attachment_parameters must be defined; use datasource.ibm_scc_profile to see all necessary parameters.

    Nested schema for attachment_parameters:

    createdBy String
    (String) The user who created the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    createdOn String
    (String) The date when the attachment was created.
    description String
    (String) The description for the attachment.

    • Constraints: The maximum length is 256 characters. The minimum length is 0 characters. The value must match regular expression /^[a-zA-Z0-9_,'\\s\\-]*$/.
    instanceId String
    The ID of the SCC instance in a particular region.
    lastScans List<Property Map>
    (List) The details of the last scan of an attachment.
    name String
    The name of the attachment.

    • Constraints: The maximum length is 128 characters. The minimum length is 2 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    nextScanTime String
    (String) The start time of the next scan.
    notifications Property Map

    The configuration for setting up notifications if a scan fails. Requires event_notifications from the instance settings to be setup.

    Nested schema for notifications:

    profileAttachmentId String
    (String) The ID that is associated with the created profile_attachment
    profileId String
    The profile ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.
    sccProfileAttachmentId String
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    schedule String
    The schedule of an attachment evaluation.

    • Constraints: Allowable values are: daily, every_7_days, every_30_days.
    scopes List<Property Map>

    The scope payload for the multi cloud feature.

    • Constraints:
    • The maximum length is 8 items. The minimum length is 0 items.

    Nested schema for scope:

    status String
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    updatedBy String
    (String) The user who updated the attachment.

    • Constraints: The maximum length is 255 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-\\.:,_\\s]*$/.
    updatedOn String
    (String) The date when the attachment was updated.

    Supporting Types

    SccProfileAttachmentAttachmentParameter, SccProfileAttachmentAttachmentParameterArgs

    AssessmentId string
    (String) The implementation ID of the parameter.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    ParameterDisplayName string
    The display name of the parameter shown in the UI.
    ParameterName string
    The name of the parameter to target.
    ParameterType string
    The type of the parameter value.
    ParameterValue string
    The value of the parameter.
    AssessmentType string
    The type of assessment the parameter uses.
    AssessmentId string
    (String) The implementation ID of the parameter.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    ParameterDisplayName string
    The display name of the parameter shown in the UI.
    ParameterName string
    The name of the parameter to target.
    ParameterType string
    The type of the parameter value.
    ParameterValue string
    The value of the parameter.
    AssessmentType string
    The type of assessment the parameter uses.
    assessmentId String
    (String) The implementation ID of the parameter.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    parameterDisplayName String
    The display name of the parameter shown in the UI.
    parameterName String
    The name of the parameter to target.
    parameterType String
    The type of the parameter value.
    parameterValue String
    The value of the parameter.
    assessmentType String
    The type of assessment the parameter uses.
    assessmentId string
    (String) The implementation ID of the parameter.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    parameterDisplayName string
    The display name of the parameter shown in the UI.
    parameterName string
    The name of the parameter to target.
    parameterType string
    The type of the parameter value.
    parameterValue string
    The value of the parameter.
    assessmentType string
    The type of assessment the parameter uses.
    assessment_id str
    (String) The implementation ID of the parameter.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    parameter_display_name str
    The display name of the parameter shown in the UI.
    parameter_name str
    The name of the parameter to target.
    parameter_type str
    The type of the parameter value.
    parameter_value str
    The value of the parameter.
    assessment_type str
    The type of assessment the parameter uses.
    assessmentId String
    (String) The implementation ID of the parameter.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    parameterDisplayName String
    The display name of the parameter shown in the UI.
    parameterName String
    The name of the parameter to target.
    parameterType String
    The type of the parameter value.
    parameterValue String
    The value of the parameter.
    assessmentType String
    The type of assessment the parameter uses.

    SccProfileAttachmentLastScan, SccProfileAttachmentLastScanArgs

    Id string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Status string
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    Time string
    (String) The time when the last scan started.
    Id string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Status string
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    Time string
    (String) The time when the last scan started.
    id String
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    status String
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    time String
    (String) The time when the last scan started.
    id string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    status string
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    time string
    (String) The time when the last scan started.
    id str
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    status str
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    time str
    (String) The time when the last scan started.
    id String
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    status String
    (String) The status of an attachment evaluation.

    • Constraints: Allowable values are: enabled, disabled.
    time String
    (String) The time when the last scan started.

    SccProfileAttachmentNotifications, SccProfileAttachmentNotificationsArgs

    Controls SccProfileAttachmentNotificationsControls
    The failed controls. Nested schema for controls:
    Enabled bool
    The flag to enable notifications. Set to true to enabled notifications, false to disable
    Controls SccProfileAttachmentNotificationsControls
    The failed controls. Nested schema for controls:
    Enabled bool
    The flag to enable notifications. Set to true to enabled notifications, false to disable
    controls SccProfileAttachmentNotificationsControls
    The failed controls. Nested schema for controls:
    enabled Boolean
    The flag to enable notifications. Set to true to enabled notifications, false to disable
    controls SccProfileAttachmentNotificationsControls
    The failed controls. Nested schema for controls:
    enabled boolean
    The flag to enable notifications. Set to true to enabled notifications, false to disable
    controls SccProfileAttachmentNotificationsControls
    The failed controls. Nested schema for controls:
    enabled bool
    The flag to enable notifications. Set to true to enabled notifications, false to disable
    controls Property Map
    The failed controls. Nested schema for controls:
    enabled Boolean
    The flag to enable notifications. Set to true to enabled notifications, false to disable

    SccProfileAttachmentNotificationsControls, SccProfileAttachmentNotificationsControlsArgs

    FailedControlIds List<string>
    The failed control IDs.

    • Constraints: The list items must match regular expression /^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/. The maximum length is 512 items. The minimum length is 0 items.
    ThresholdLimit double
    The threshold limit.
    FailedControlIds []string
    The failed control IDs.

    • Constraints: The list items must match regular expression /^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/. The maximum length is 512 items. The minimum length is 0 items.
    ThresholdLimit float64
    The threshold limit.
    failedControlIds List<String>
    The failed control IDs.

    • Constraints: The list items must match regular expression /^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/. The maximum length is 512 items. The minimum length is 0 items.
    thresholdLimit Double
    The threshold limit.
    failedControlIds string[]
    The failed control IDs.

    • Constraints: The list items must match regular expression /^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/. The maximum length is 512 items. The minimum length is 0 items.
    thresholdLimit number
    The threshold limit.
    failed_control_ids Sequence[str]
    The failed control IDs.

    • Constraints: The list items must match regular expression /^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/. The maximum length is 512 items. The minimum length is 0 items.
    threshold_limit float
    The threshold limit.
    failedControlIds List<String>
    The failed control IDs.

    • Constraints: The list items must match regular expression /^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$|^$/. The maximum length is 512 items. The minimum length is 0 items.
    thresholdLimit Number
    The threshold limit.

    SccProfileAttachmentScope, SccProfileAttachmentScopeArgs

    Environment string
    The environment that relates to this scope.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    Id string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Properties List<SccProfileAttachmentScopeProperty>

    The properties supported for scoping by this environment.

    • Constraints: The maximum length is 8 items. The minimum length is 0 items. Nested schema for properties:

    NOTE: Defining the scope_type value must be either account, account.resource_group, enterprise, enterprise.account and enterprise.account_group." NOTE: Defining the scope_id value will be the id of the scope_type(ex. enterprise.account_group will be the ID of the account_group within an enterprise)

    Environment string
    The environment that relates to this scope.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    Id string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    Properties []SccProfileAttachmentScopeProperty

    The properties supported for scoping by this environment.

    • Constraints: The maximum length is 8 items. The minimum length is 0 items. Nested schema for properties:

    NOTE: Defining the scope_type value must be either account, account.resource_group, enterprise, enterprise.account and enterprise.account_group." NOTE: Defining the scope_id value will be the id of the scope_type(ex. enterprise.account_group will be the ID of the account_group within an enterprise)

    environment String
    The environment that relates to this scope.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    id String
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    properties List<SccProfileAttachmentScopeProperty>

    The properties supported for scoping by this environment.

    • Constraints: The maximum length is 8 items. The minimum length is 0 items. Nested schema for properties:

    NOTE: Defining the scope_type value must be either account, account.resource_group, enterprise, enterprise.account and enterprise.account_group." NOTE: Defining the scope_id value will be the id of the scope_type(ex. enterprise.account_group will be the ID of the account_group within an enterprise)

    environment string
    The environment that relates to this scope.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    id string
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    properties SccProfileAttachmentScopeProperty[]

    The properties supported for scoping by this environment.

    • Constraints: The maximum length is 8 items. The minimum length is 0 items. Nested schema for properties:

    NOTE: Defining the scope_type value must be either account, account.resource_group, enterprise, enterprise.account and enterprise.account_group." NOTE: Defining the scope_id value will be the id of the scope_type(ex. enterprise.account_group will be the ID of the account_group within an enterprise)

    environment str
    The environment that relates to this scope.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    id str
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    properties Sequence[SccProfileAttachmentScopeProperty]

    The properties supported for scoping by this environment.

    • Constraints: The maximum length is 8 items. The minimum length is 0 items. Nested schema for properties:

    NOTE: Defining the scope_type value must be either account, account.resource_group, enterprise, enterprise.account and enterprise.account_group." NOTE: Defining the scope_id value will be the id of the scope_type(ex. enterprise.account_group will be the ID of the account_group within an enterprise)

    environment String
    The environment that relates to this scope.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    id String
    (String) The ID of the last scan of an attachment.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-zA-Z0-9-]*$/.
    properties List<Property Map>

    The properties supported for scoping by this environment.

    • Constraints: The maximum length is 8 items. The minimum length is 0 items. Nested schema for properties:

    NOTE: Defining the scope_type value must be either account, account.resource_group, enterprise, enterprise.account and enterprise.account_group." NOTE: Defining the scope_id value will be the id of the scope_type(ex. enterprise.account_group will be the ID of the account_group within an enterprise)

    SccProfileAttachmentScopeProperty, SccProfileAttachmentScopePropertyArgs

    Name string
    The name of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    Value string
    The value of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.;
    Name string
    The name of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    Value string
    The value of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.;
    name String
    The name of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    value String
    The value of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.;
    name string
    The name of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    value string
    The value of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.;
    name str
    The name of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    value str
    The value of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.;
    name String
    The name of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.
    value String
    The value of the property.

    • Constraints: The maximum length is 64 characters. The minimum length is 2 characters. The value must match regular expression /[A-Za-z0-9]+/.;

    Import

    You can import the ibm_scc_profile_attachment resource by using id.

    The id property can be formed from instance_id, profiles_id, and attachment_id in the following format:

    bash

    <instance_id>/<profile_id>/<attachment_id>

    • instance_id: A string. The instance ID.

    • profile_id: A string. The profile ID.

    • attachment_id: A string. The attachment ID.

    Syntax

    bash

    $ pulumi import ibm:index/sccProfileAttachment:SccProfileAttachment scc_profile_attachment <instance_id>/<profile_id>/<attachment_id>
    

    Example

    bash

    $ pulumi import ibm:index/sccProfileAttachment:SccProfileAttachment scc_profile_attachment 00000000-1111-2222-3333-444444444444/00000000-1111-2222-3333-444444444444/f3517159-889e-4781-819a-89d89b747c85
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud