# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).

import oci

# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()


# Initialize service client with default config file
identity_domains_client = oci.identity_domains.IdentityDomainsClient(
    config, "https://endpoint_of_this_service.com")


# Send the request to service, some parameters are not required, see API
# doc for more info
create_identity_propagation_trust_response = identity_domains_client.create_identity_propagation_trust(
    authorization="EXAMPLE-authorization-Value",
    resource_type_schema_version="EXAMPLE-resourceTypeSchemaVersion-Value",
    attributes="EXAMPLE-attributes-Value",
    attribute_sets=["all"],
    identity_propagation_trust=oci.identity_domains.models.IdentityPropagationTrust(
        schemas=["EXAMPLE--Value"],
        name="EXAMPLE-name-Value",
        type="JWT",
        issuer="EXAMPLE-issuer-Value",
        id="ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
        ocid="EXAMPLE-ocid-Value",
        meta=oci.identity_domains.models.Meta(
            resource_type="EXAMPLE-resourceType-Value",
            created="EXAMPLE-created-Value",
            last_modified="EXAMPLE-lastModified-Value",
            location="EXAMPLE-location-Value",
            version="EXAMPLE-version-Value"),
        idcs_created_by=oci.identity_domains.models.IdcsCreatedBy(
            value="EXAMPLE-value-Value",
            ref=None,
            type="User",
            display="EXAMPLE-display-Value",
            ocid="EXAMPLE-ocid-Value"),
        idcs_last_modified_by=oci.identity_domains.models.IdcsLastModifiedBy(
            value="EXAMPLE-value-Value",
            ref=None,
            type="User",
            display="EXAMPLE-display-Value",
            ocid="EXAMPLE-ocid-Value"),
        idcs_prevented_operations=["replace"],
        tags=[
            oci.identity_domains.models.Tags(
                key="EXAMPLE-key-Value",
                value="EXAMPLE-value-Value")],
        delete_in_progress=False,
        idcs_last_upgraded_in_release="EXAMPLE-idcsLastUpgradedInRelease-Value",
        domain_ocid="EXAMPLE-domainOcid-Value",
        compartment_ocid="EXAMPLE-compartmentOcid-Value",
        tenancy_ocid="EXAMPLE-tenancyOcid-Value",
        description="EXAMPLE-description-Value",
        account_id="ocid1.test.oc1..<unique_ID>EXAMPLE-accountId-Value",
        subject_claim_name="EXAMPLE-subjectClaimName-Value",
        subject_mapping_attribute="EXAMPLE-subjectMappingAttribute-Value",
        subject_type="User",
        client_claim_name="EXAMPLE-clientClaimName-Value",
        client_claim_values=["EXAMPLE--Value"],
        active=True,
        public_key_endpoint="EXAMPLE-publicKeyEndpoint-Value",
        public_certificate="EXAMPLE-publicCertificate-Value",
        oauth_clients=["EXAMPLE--Value"],
        service_principals=["EXAMPLE--Value"],
        allow_impersonation=True,
        clock_skew_seconds=435,
        impersonation_service_users=[
            oci.identity_domains.models.IdentityPropagationTrustImpersonationServiceUsers(
                value="EXAMPLE-value-Value",
                rule="EXAMPLE-rule-Value",
                ocid="EXAMPLE-ocid-Value",
                ref=None)],
        keytab=oci.identity_domains.models.IdentityPropagationTrustKeytab(
            secret_ocid="EXAMPLE-secretOcid-Value",
            secret_version=345)),
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

# Get the data from response
print(create_identity_propagation_trust_response.data)